/*
Theme Name: Vögeli Photography
Theme URI: https://briannavoegeliphotography.com
Author: Your Name
Description: Elegant editorial wedding photography theme — fully editable with Gutenberg. Soft, refined storytelling with an editorial edge.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: voegeli-photography
Tags: blog, photography, full-site-editing, block-patterns, custom-colors, custom-logo, editor-style
*/

/* ──────────────────────────────────────
   GLOBAL RESET & BASE
────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

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

/* ──────────────────────────────────────
   CUSTOM PROPERTIES (supplement theme.json)
────────────────────────────────────── */
:root {
  --vg-cream:      #f8f5f0;
  --vg-warm-white: #fdfbf8;
  --vg-dark:       #1a1714;
  --vg-mid:        #3a3530;
  --vg-light:      #7a756e;
  --vg-accent:     #c4a882;
  --vg-border:     #e8e2da;
  --vg-serif:      'Cormorant Garamond', Georgia, serif;
  --vg-sans:       'Jost', sans-serif;
  --vg-transition: 0.35s ease;
}

/* ──────────────────────────────────────
   NAVIGATION (Header Template Part)
────────────────────────────────────── */
.vg-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  transition: background var(--vg-transition), padding var(--vg-transition), box-shadow var(--vg-transition);
}
.vg-header.is-scrolled {
  background: rgba(253,251,248,0.96);
  backdrop-filter: blur(10px);
  padding: 14px 48px;
  box-shadow: 0 1px 0 var(--vg-border);
}

/* Site logo */
.vg-header .wp-site-logo,
.vg-header .wp-block-site-title {
  font-family: var(--vg-serif);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: white;
  text-decoration: none;
  transition: color var(--vg-transition);
}
.vg-header.is-scrolled .wp-site-logo,
.vg-header.is-scrolled .wp-block-site-title a {
  color: var(--vg-dark);
}
.vg-header .wp-block-site-title a { color: inherit; text-decoration: none; }

/* Nav menu */
.vg-header .wp-block-navigation {
  --nav-link-color: rgba(255,255,255,0.88);
  --nav-link-hover-color: var(--vg-accent);
}
.vg-header.is-scrolled .wp-block-navigation {
  --nav-link-color: var(--vg-mid);
}
.vg-header .wp-block-navigation a {
  font-family: var(--vg-sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--nav-link-color);
  text-decoration: none;
  transition: color var(--vg-transition);
}
.vg-header .wp-block-navigation a:hover { color: var(--nav-link-hover-color); }

/* Push content below fixed header */
.wp-block-template-part[data-slug="header"] + * { margin-top: 0; }
body > .wp-site-blocks { padding-top: 0 !important; }

/* ──────────────────────────────────────
   HERO SECTION (.vg-hero)
────────────────────────────────────── */
.vg-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.vg-hero-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.vg-hero-grid .wp-block-image,
.vg-hero-grid figure {
  margin: 0;
  overflow: hidden;
  height: 100%;
}
.vg-hero-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.78);
}
.vg-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,16,12,0.75) 0%, rgba(0,0,0,0.08) 55%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
.vg-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px 90px;
  max-width: 720px;
}
.vg-hero-content .wp-block-heading {
  font-family: var(--vg-serif);
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  font-weight: 300;
  color: white;
  line-height: 1.08;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}
.vg-hero-content p {
  font-family: var(--vg-serif);
  font-style: italic;
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  font-weight: 300;
  color: rgba(255,255,255,0.82);
  line-height: 1.65;
  margin-bottom: 36px;
}
.vg-eyebrow {
  font-family: var(--vg-sans) !important;
  font-size: 0.6rem !important;
  letter-spacing: 0.35em !important;
  text-transform: uppercase !important;
  color: var(--vg-accent) !important;
  font-weight: 400 !important;
  margin-bottom: 18px !important;
}

/* ──────────────────────────────────────
   BUTTONS
────────────────────────────────────── */
.wp-block-button__link,
.wp-block-buttons .wp-block-button__link {
  border-radius: 0 !important;
  font-family: var(--vg-sans);
  font-size: 0.64rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 400;
  padding: 13px 32px;
  transition: background var(--vg-transition), color var(--vg-transition), border-color var(--vg-transition);
}
/* Ghost (outline) button on dark background */
.is-style-outline .wp-block-button__link {
  border: 1px solid rgba(255,255,255,0.55) !important;
  color: white !important;
  background: transparent !important;
}
.is-style-outline .wp-block-button__link:hover {
  background: white !important;
  color: var(--vg-dark) !important;
}
/* Dark outline on light background */
.is-style-outline-dark .wp-block-button__link {
  border: 1px solid var(--vg-dark) !important;
  color: var(--vg-dark) !important;
  background: transparent !important;
}
.is-style-outline-dark .wp-block-button__link:hover {
  background: var(--vg-dark) !important;
  color: white !important;
}
/* Filled accent button */
.is-style-accent .wp-block-button__link {
  background: var(--vg-accent) !important;
  color: var(--vg-dark) !important;
  border: none !important;
}
.is-style-accent .wp-block-button__link:hover {
  background: white !important;
}

/* ──────────────────────────────────────
   PRESS STRIP (.vg-press)
────────────────────────────────────── */
.vg-press {
  background: var(--vg-cream);
  padding: 36px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--vg-border);
  border-bottom: 1px solid var(--vg-border);
}
.vg-press-label {
  flex-basis: 100%;
  text-align: center;
  font-family: var(--vg-sans);
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--vg-light);
  margin-bottom: 14px;
}
.vg-press-item {
  font-family: var(--vg-serif);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vg-mid);
  padding: 6px 18px;
  border: 1px solid var(--vg-border);
  background: white;
}

/* ──────────────────────────────────────
   ABOUT SECTION (.vg-about)
────────────────────────────────────── */
.vg-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 580px;
  overflow: hidden;
}
.vg-about .vg-about-img {
  overflow: hidden;
  position: relative;
}
.vg-about .vg-about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.9s ease;
}
.vg-about .vg-about-img:hover img { transform: scale(1.04); }
.vg-about .vg-about-text {
  background: var(--vg-warm-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 72px;
}
.vg-section-role {
  font-family: var(--vg-sans);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--vg-light);
  margin-bottom: 28px;
}

/* ──────────────────────────────────────
   PORTFOLIO GRID (.vg-portfolio)
────────────────────────────────────── */
.vg-portfolio {
  background: var(--vg-cream);
  padding: 100px 48px;
}
.vg-portfolio-header {
  text-align: center;
  margin-bottom: 56px;
  max-width: 600px;
  margin-inline: auto;
}
.vg-portfolio-header p {
  font-family: var(--vg-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--vg-light);
  line-height: 1.7;
  margin-top: 14px;
}
.vg-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.vg-portfolio-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4.2;
  cursor: pointer;
}
.vg-portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.82);
  transition: transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94), filter 0.4s;
}
.vg-portfolio-card:hover img {
  transform: scale(1.06);
  filter: brightness(0.7);
}
.vg-portfolio-card-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 70px 28px 28px;
  background: linear-gradient(transparent, rgba(15,12,9,0.78));
}
.vg-portfolio-card-label h3 {
  font-family: var(--vg-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: white;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.vg-portfolio-card-label a {
  font-family: var(--vg-sans);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  padding-bottom: 2px;
  transition: color var(--vg-transition), border-color var(--vg-transition);
}
.vg-portfolio-card-label a:hover { color: white; border-color: white; }

/* ──────────────────────────────────────
   QUOTE BANNER (.vg-quote)
────────────────────────────────────── */
.vg-quote {
  padding: 90px 48px;
  text-align: center;
  background: var(--vg-warm-white);
}
.vg-quote::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--vg-accent);
  margin: 0 auto 36px;
}
.vg-quote .wp-block-heading {
  font-family: var(--vg-serif) !important;
  font-size: clamp(1.8rem, 3.5vw, 3rem) !important;
  font-weight: 300 !important;
  font-style: italic;
  color: var(--vg-dark);
  line-height: 1.25;
}

/* ──────────────────────────────────────
   FULL IMAGE STRIP (.vg-full-strip)
────────────────────────────────────── */
.vg-full-strip {
  height: 60vh;
  min-height: 380px;
  overflow: hidden;
}
.vg-full-strip .wp-block-image,
.vg-full-strip figure {
  height: 100%;
  margin: 0;
}
.vg-full-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.86);
}

/* ──────────────────────────────────────
   TESTIMONIAL (.vg-testimonial)
────────────────────────────────────── */
.vg-testimonial {
  background: var(--vg-cream);
  padding: 100px 48px;
  text-align: center;
  border-top: 1px solid var(--vg-border);
}
.vg-testimonial blockquote,
.vg-testimonial .wp-block-quote p {
  font-family: var(--vg-serif);
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  font-style: italic;
  font-weight: 300;
  color: var(--vg-mid);
  max-width: 680px;
  margin: 28px auto;
  line-height: 1.72;
}
.vg-testimonial .wp-block-quote {
  border: none;
  padding: 0;
  margin: 28px auto;
  max-width: 680px;
}
.vg-testimonial .wp-block-quote cite {
  font-family: var(--vg-sans);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--vg-light);
  font-style: normal;
}

/* ──────────────────────────────────────
   CONTACT SECTION (.vg-contact)
────────────────────────────────────── */
.vg-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 540px;
}
.vg-contact-img { overflow: hidden; }
.vg-contact-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
}
.vg-contact-form {
  background: var(--vg-dark);
  padding: 72px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.vg-contact-form .wp-block-heading { color: var(--vg-cream); }
.vg-contact-form p { color: rgba(255,255,255,0.55); font-size: 0.85rem; line-height: 1.75; }
/* Contact Form 7 & WPForms overrides */
.vg-contact-form input[type="text"],
.vg-contact-form input[type="email"],
.vg-contact-form input[type="tel"],
.vg-contact-form textarea,
.vg-contact-form select,
.vg-contact-form .wpcf7-form-control:not(.wpcf7-submit) {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: 0 !important;
  color: white !important;
  font-family: var(--vg-sans) !important;
  font-size: 0.82rem !important;
  font-weight: 300 !important;
  padding: 12px 16px !important;
  width: 100% !important;
  outline: none !important;
  transition: border-color var(--vg-transition) !important;
}
.vg-contact-form input::placeholder,
.vg-contact-form textarea::placeholder { color: rgba(255,255,255,0.35) !important; }
.vg-contact-form input:focus,
.vg-contact-form textarea:focus { border-color: var(--vg-accent) !important; }
.vg-contact-form input[type="submit"],
.vg-contact-form .wpcf7-submit {
  background: var(--vg-accent) !important;
  color: var(--vg-dark) !important;
  border: none !important;
  border-radius: 0 !important;
  font-family: var(--vg-sans) !important;
  font-size: 0.62rem !important;
  letter-spacing: 0.26em !important;
  text-transform: uppercase !important;
  font-weight: 500 !important;
  padding: 14px 36px !important;
  cursor: pointer !important;
  transition: background var(--vg-transition) !important;
  margin-top: 12px !important;
}
.vg-contact-form input[type="submit"]:hover,
.vg-contact-form .wpcf7-submit:hover { background: white !important; }

/* ──────────────────────────────────────
   SEO TEXT SECTION (.vg-seo)
────────────────────────────────────── */
.vg-seo {
  padding: 80px 48px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.vg-seo p {
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--vg-mid);
}
.vg-seo a { color: var(--vg-accent); text-decoration: none; }
.vg-seo a:hover { text-decoration: underline; }

/* ──────────────────────────────────────
   NEWSLETTER (.vg-newsletter)
────────────────────────────────────── */
.vg-newsletter {
  background: var(--vg-cream);
  padding: 70px 48px;
  text-align: center;
  border-top: 1px solid var(--vg-border);
  border-bottom: 1px solid var(--vg-border);
}
/* Mailchimp / MailPoet form overrides */
.vg-newsletter form {
  display: flex;
  max-width: 420px;
  margin: 24px auto 0;
  gap: 0;
}
.vg-newsletter input[type="email"] {
  flex: 1;
  padding: 13px 18px;
  border: 1px solid var(--vg-border);
  border-right: none;
  font-family: var(--vg-sans);
  font-size: 0.8rem;
  background: white;
  outline: none;
  border-radius: 0;
}
.vg-newsletter input[type="submit"],
.vg-newsletter button[type="submit"] {
  padding: 13px 24px;
  background: var(--vg-dark);
  color: white;
  font-family: var(--vg-sans);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 0;
  transition: background var(--vg-transition), color var(--vg-transition);
}
.vg-newsletter input[type="submit"]:hover,
.vg-newsletter button[type="submit"]:hover {
  background: var(--vg-accent);
  color: var(--vg-dark);
}

/* ──────────────────────────────────────
   FOOTER
────────────────────────────────────── */
.vg-footer {
  background: var(--vg-dark);
  color: rgba(255,255,255,0.6);
  padding: 64px 48px 36px;
}
.vg-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.vg-footer h4, .vg-footer .vg-footer-brand-name {
  font-family: var(--vg-serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: white;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.vg-footer p { font-size: 0.8rem; line-height: 1.8; max-width: 260px; }
.vg-footer h5, .vg-footer-col-title {
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 20px;
  font-family: var(--vg-sans);
  font-weight: 400;
}
.vg-footer ul { list-style: none; padding: 0; margin: 0; }
.vg-footer ul li { margin-bottom: 10px; }
.vg-footer ul a, .vg-footer a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--vg-transition);
}
.vg-footer ul a:hover, .vg-footer a:hover { color: var(--vg-accent); }
.vg-footer-social {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.vg-footer-social a {
  font-family: var(--vg-sans);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color var(--vg-transition);
}
.vg-footer-social a:hover { color: var(--vg-accent); }
.vg-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ──────────────────────────────────────
   SCROLL REVEAL
────────────────────────────────────── */
.vg-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.vg-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ──────────────────────────────────────
   RESPONSIVE
────────────────────────────────────── */
@media (max-width: 960px) {
  .vg-header { padding: 18px 24px; }
  .vg-header.is-scrolled { padding: 14px 24px; }
  .vg-about { grid-template-columns: 1fr; }
  .vg-about .vg-about-img { height: 50vw; min-height: 280px; }
  .vg-about .vg-about-text { padding: 56px 32px; }
  .vg-contact { grid-template-columns: 1fr; }
  .vg-contact-img { height: 45vw; min-height: 260px; }
  .vg-contact-form { padding: 56px 32px; }
  .vg-portfolio-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .vg-portfolio { padding: 70px 24px; }
  .vg-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .vg-press { padding: 28px 24px; }
  .vg-seo { padding: 56px 24px; }
}
@media (max-width: 600px) {
  .vg-hero-grid { grid-template-columns: 1fr; }
  .vg-hero-grid .wp-block-image:last-child { display: none; }
  .vg-portfolio-grid { grid-template-columns: 1fr; max-width: 400px; margin-inline: auto; }
  .vg-footer-grid { grid-template-columns: 1fr; }
  .vg-footer-bottom { flex-direction: column; text-align: center; }
  .vg-newsletter form { flex-direction: column; }
  .vg-newsletter input[type="email"] { border-right: 1px solid var(--vg-border); }
}
