/*
Theme Name: RLV3 Studio
Theme URI: https://rlv3studio.com
Author: Carlo (Vibe Social)
Author URI: https://vibesocial.online
Description: A cinematic one page theme for RLV3 Studio, a photography and production house in Baguio City. Gold, black, and white editorial styling for weddings, portraits, fashion, and brand shoots.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rlv3studio
*/

/* ============================================================
   1. Design tokens
   ============================================================ */
:root {
  --ink:        #0a0908;
  --ink-2:      #121010;
  --ink-3:      #1a1715;
  --gold:       #c9a24b;
  --gold-soft:  #e4c87d;
  --gold-deep:  #8a6d2f;
  --bone:       #f3efe7;
  --smoke:      #a7a099;
  --smoke-dim:  #6f6a63;
  --line:       rgba(201, 162, 75, 0.26);
  --line-soft:  rgba(243, 239, 231, 0.10);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Jost", "Helvetica Neue", Arial, sans-serif;

  --pad-x: clamp(1.4rem, 5vw, 6rem);
  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   2. Reset and base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1rem, 0.55vw + 0.9rem, 1.12rem);
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.05; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); }

/* Shared eyebrow label */
.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
}

/* Aperture divider */
.aperture-rule {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  color: var(--gold);
}
.aperture-rule::before,
.aperture-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.aperture-rule svg { width: 26px; height: 26px; flex: none; opacity: 0.9; }

/* Gold text accent */
.gold { color: var(--gold); }
.serif-italic { font-style: italic; font-family: var(--serif); }

/* ============================================================
   3. Reveal on scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.10s; }
.reveal.d2 { transition-delay: 0.20s; }
.reveal.d3 { transition-delay: 0.30s; }
.reveal.d4 { transition-delay: 0.40s; }

/* ============================================================
   4. Header / nav
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  transition: background 0.5s var(--ease), backdrop-filter 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 9, 8, 0.82);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  color: var(--bone);
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
}
.brand .brand-mark { color: var(--gold); }
.brand small {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  color: var(--smoke);
  text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 2.4rem; }
.nav-links a {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--smoke);
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.35s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease);
}
.nav-links a:hover { color: var(--bone); }
.nav-links a:hover::after { width: 100%; }

.btn {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  padding: 0.85rem 1.8rem;
  border: 1px solid var(--gold);
  border-radius: 2px;
  display: inline-block;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease);
  box-shadow: 0 8px 30px -14px rgba(201, 162, 75, 0.7);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -14px rgba(201, 162, 75, 0.9); }
.btn:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }

.btn-ghost {
  background: transparent;
  color: var(--gold);
  box-shadow: none;
  border-color: var(--line);
}
.btn-ghost:hover { color: var(--ink); background: var(--gold); border-color: var(--gold); }

/* mobile nav toggle */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 11px; right: 11px;
  height: 1.5px;
  background: var(--bone);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 25px; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ============================================================
   5. Hero
   ============================================================ */
/* Mobile first: stacked hero so the full logo art stays visible, no crop */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--ink);
}
.hero-media {
  position: relative;
  width: 100%;
  z-index: 0;
}
.hero-img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 1;
  animation: heroFade 1.2s var(--ease) both;
}
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }
.hero-veil {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 90% at 50% 30%, transparent 40%, rgba(10,9,8,0.55) 100%),
    linear-gradient(180deg, rgba(10,9,8,0.55) 0%, transparent 26%, transparent 52%, rgba(10,9,8,0.92) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(2rem, 6vw, 3rem) 0 clamp(2.6rem, 8vw, 3.6rem);
  text-align: center;
}
.hero-tagline {
  display: none;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(0.78rem, 1.6vw, 1rem);
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 1.6rem;
  padding-left: 0.55em;
}
.hero-heading {
  font-size: clamp(2rem, 7vw, 4.6rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--bone);
  max-width: 20ch;
  margin: 0 auto 1.8rem;
}
.hero-heading em { color: var(--gold); font-style: italic; }
.hero-cta { display: inline-flex; gap: 0.8rem; flex-wrap: wrap; justify-content: center; }

.scroll-cue { display: none; }
@keyframes cueLine { 0%,100% { opacity: 0.35; transform: scaleY(0.7); } 50% { opacity: 1; transform: scaleY(1); } }

/* Landscape and wide displays: immersive full screen hero with cover crop */
@media (min-aspect-ratio: 5/4) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    justify-content: flex-end;
  }
  .hero-media { position: absolute; inset: 0; }
  .hero-img { height: 100%; object-fit: cover; object-position: center; }
  .hero-veil { display: block; }
  .hero-inner { padding: 0 0 clamp(3.5rem, 8vh, 6rem); }
  .hero-tagline { display: inline-block; }
  .hero-heading { font-size: clamp(2.6rem, 6vw, 4.6rem); max-width: 18ch; margin: 0 auto 2.2rem; }
  .hero-cta { gap: 1rem; }

  .scroll-cue {
    display: flex;
    position: absolute;
    left: 50%; bottom: 1.6rem;
    transform: translateX(-50%);
    z-index: 3;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    color: var(--smoke);
    font-family: var(--sans);
    font-size: 0.6rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
  }
  .scroll-cue i {
    width: 1px; height: 46px;
    background: linear-gradient(180deg, var(--gold), transparent);
    animation: cueLine 2.4s ease-in-out infinite;
  }
}

/* ============================================================
   6. Sections shared
   ============================================================ */
.section { padding-block: clamp(5rem, 12vh, 9rem); position: relative; }
.section-head { max-width: 46rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 1.3rem; }
.section-title {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 400;
  color: var(--bone);
  letter-spacing: 0.005em;
}
.section-title em { color: var(--gold); font-style: italic; }
.lede {
  color: var(--smoke);
  font-size: clamp(1.05rem, 1.4vw, 1.28rem);
  line-height: 1.85;
  margin-top: 1.6rem;
}

/* Intro / statement */
.statement { text-align: center; }
.statement .aperture-rule { max-width: 560px; margin: 0 auto 2.6rem; }
.statement p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  line-height: 1.35;
  color: var(--bone);
  max-width: 22ch;
  margin: 0 auto;
}
.statement p em { color: var(--gold); font-style: italic; }
.statement .sub {
  font-family: var(--sans);
  font-size: 1.05rem;
  color: var(--smoke);
  max-width: 44rem;
  margin: 2rem auto 0;
  line-height: 1.85;
}

/* ============================================================
   7. Services
   ============================================================ */
.services-grid {
  margin-top: clamp(2.6rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}
.service {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  align-items: baseline;
  gap: clamp(1rem, 3vw, 3rem);
  padding-block: clamp(1.7rem, 3.6vw, 2.6rem);
  border-bottom: 1px solid var(--line);
  transition: background 0.5s var(--ease);
}
.service:hover { background: linear-gradient(90deg, rgba(201,162,75,0.05), transparent 70%); }
.service-index {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  padding-top: 0.5rem;
}
.service-name {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  font-weight: 400;
  color: var(--bone);
  transition: color 0.4s var(--ease), transform 0.5s var(--ease);
}
.service:hover .service-name { color: var(--gold-soft); }
.service-desc {
  color: var(--smoke);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 34ch;
}
@media (max-width: 760px) {
  .service { grid-template-columns: 3rem 1fr; }
  .service-desc { grid-column: 1 / -1; max-width: none; }
}

/* ============================================================
   8. Portfolio / gallery
   ============================================================ */
.gallery {
  margin-top: clamp(2.6rem, 5vw, 3.6rem);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 12vw;
  gap: 12px;
}
.tile {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: linear-gradient(135deg, var(--ink-3), var(--ink-2));
  background-size: cover;
  background-position: center;
}
.tile.big  { grid-column: span 3; grid-row: span 2; }
.tile.tall { grid-column: span 2; grid-row: span 2; }
.tile.wide { grid-column: span 3; grid-row: span 1; }
.tile.std  { grid-column: span 2; grid-row: span 1; }
.tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(10,9,8,0.85));
  opacity: 0.85;
  transition: opacity 0.5s var(--ease);
}
.tile:hover::after { opacity: 0.55; }
.tile-label {
  position: absolute;
  left: 1.1rem; bottom: 1rem;
  z-index: 2;
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bone);
}
.tile-label span { display: block; color: var(--gold); font-size: 0.58rem; margin-top: 0.25rem; opacity: 0.85; }
.tile-placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--smoke-dim);
}
.tile-placeholder svg { width: 34px; height: 34px; opacity: 0.5; }
@media (max-width: 900px) {
  .gallery { grid-auto-rows: 26vw; gap: 8px; }
  .tile.big, .tile.tall, .tile.wide, .tile.std { grid-column: span 3; grid-row: span 1; }
  .tile.big { grid-column: span 6; grid-row: span 2; }
}

.gallery-note {
  margin-top: 1.6rem;
  text-align: center;
  color: var(--smoke-dim);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

/* ============================================================
   9. Approach (Capture / Create / Inspire)
   ============================================================ */
.approach { background: var(--ink-2); border-block: 1px solid var(--line); }
.values {
  margin-top: clamp(2.6rem, 5vw, 3.6rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.6rem, 3vw, 3rem);
}
.value { position: relative; padding-top: 2.2rem; }
.value::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 44px; height: 1px;
  background: var(--gold);
}
.value h3 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--gold-soft);
  font-weight: 500;
  margin-bottom: 0.9rem;
  letter-spacing: 0.02em;
}
.value p { color: var(--smoke); font-size: 1rem; line-height: 1.8; }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; gap: 2.2rem; } }

/* ============================================================
   10. Contact
   ============================================================ */
.contact-grid {
  margin-top: clamp(2.6rem, 5vw, 3.6rem);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.contact-cta h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--bone);
  font-weight: 400;
  line-height: 1.1;
}
.contact-cta h2 em { color: var(--gold); font-style: italic; }
.contact-cta p { color: var(--smoke); margin-top: 1.4rem; max-width: 40ch; }
.contact-cta .btn { margin-top: 2.2rem; }

.contact-details { display: grid; gap: 1.6rem; }
.detail {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  align-items: start;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.detail:last-child { border-bottom: 0; }
.detail-icon { color: var(--gold); padding-top: 0.15rem; }
.detail-icon svg { width: 22px; height: 22px; }
.detail-label {
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--smoke-dim);
  margin-bottom: 0.35rem;
}
.detail-value { color: var(--bone); font-size: 1.05rem; line-height: 1.55; }
.detail-value a { transition: color 0.35s var(--ease); }
.detail-value a:hover { color: var(--gold); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* ============================================================
   11. Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 4.5rem);
  text-align: center;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--bone);
}
.footer-brand span { color: var(--gold); }
.footer-tag {
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--smoke);
  margin-top: 0.9rem;
}
.footer-social { margin-top: 2rem; display: inline-flex; gap: 1.4rem; }
.footer-social a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--smoke);
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.footer-social a:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-legal {
  margin-top: 2.4rem;
  color: var(--smoke-dim);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
}
.footer-legal a { color: var(--smoke); }

/* ============================================================
   12. Mobile nav panel
   ============================================================ */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 78px 0 auto 0;
    flex-direction: column;
    align-items: center;
    gap: 0;
    background: rgba(10, 9, 8, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 1.5rem 0 2.4rem;
    transform: translateY(-140%);
    transition: transform 0.55s var(--ease);
    max-height: calc(100svh - 78px);
    overflow-y: auto;
  }
  body.nav-open .nav-links { transform: translateY(0); }
  .nav-links a { font-size: 0.95rem; padding: 1rem 0; letter-spacing: 0.22em; }
  .nav-links .btn { margin-top: 1rem; }
}

/* ============================================================
   13. Accessibility
   ============================================================ */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
  border-radius: 2px;
}
.skip-link {
  position: absolute;
  left: -999px; top: 0;
  z-index: 200;
  background: var(--gold);
  color: var(--ink);
  padding: 0.7rem 1.2rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}
.skip-link:focus { left: 1rem; top: 1rem; }
::selection { background: var(--gold); color: var(--ink); }
