/* ═══════════════════════════════════════════════════════
   Luxe Co Studio — Main Stylesheet
   v1.0.0
═══════════════════════════════════════════════════════ */

/* ── CUSTOM PROPERTIES ── */
:root {
  --white:   #FAF8F5;
  --charcoal:#2C2C2C;
  --deep:    #1A1A1A;
  --brass:   #B8A088;
  --greige:  #EDE8E2;
  --taupe:   #D4CEC6;
  --mid:     #888;
  --serif:   'Cormorant Garamond', Georgia, serif;
  --sans:    'Jost', 'Helvetica Neue', sans-serif;
}

/* ── RESET & BASE ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; }
button { cursor: pointer; }


/* ══════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 56px;
  transition: background .5s, padding .4s, box-shadow .4s;
}
nav.scrolled {
  background: rgba(250,248,245,.97);
  padding: 18px 56px;
  box-shadow: 0 1px 24px rgba(0,0,0,.04);
}

/* Logo */
.logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: .06em;
  color: var(--white);
  transition: color .5s;
}
nav.scrolled .logo { color: var(--charcoal); }

/* Custom logo image */
.logo img,
.custom-logo { height: 40px; width: auto; }

/* Desktop nav links */
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(250,248,245,.75);
  transition: color .3s;
}
nav.scrolled .nav-links a { color: var(--charcoal); }
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--brass); }

/* Homepage: keep nav links white over hero before scrolling (overrides pages.css) */
body.home nav:not(.scrolled) .nav-links a { color: rgba(250,248,245,.75); }
body.home nav:not(.scrolled) .logo { color: var(--white); }
body.home nav:not(.scrolled) .hamburger span { background: var(--white); }

/* ── Dropdown sub-menu ── */
.nav-links li { position: relative; }
.nav-links .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 16px);
  left: -20px;
  background: rgba(250,248,245,0.98);
  min-width: 220px;
  padding: 10px 0;
  border-top: 2px solid var(--brass);
  box-shadow: 0 12px 40px rgba(38,38,38,.12);
  z-index: 200;
  list-style: none;
  margin: 0;
}
.nav-links li:hover > .sub-menu,
.nav-links li:focus-within > .sub-menu { display: block; }
.nav-links .sub-menu li { display: block; }
.nav-links .sub-menu a {
  display: block;
  padding: 10px 24px;
  font-size: 1rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--charcoal) !important;
  transition: color .25s, padding-left .25s;
  white-space: nowrap;
}
.nav-links .sub-menu a:hover { color: var(--brass) !important; padding-left: 30px; }

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  z-index: 200;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--white);
  transition: background .4s;
}
nav.scrolled .hamburger span { background: var(--charcoal); }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--deep);
  z-index: 150;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
}
.mobile-nav.open { display: flex; }
.mobile-nav li { list-style: none; }
.mobile-nav a {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--white);
  font-weight: 300;
  letter-spacing: .03em;
  transition: color .3s;
}
.mobile-nav a:hover { color: var(--brass); }
.mobile-close {
  position: absolute;
  top: 28px; right: 30px;
  font-size: 1.8rem;
  color: var(--white);
  background: none;
  border: none;
}


/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  background: linear-gradient(150deg, #18160f 0%, #2a2420 50%, #1e1b16 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

/* Gradient overlay */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 70% at 25% 60%, rgba(184,160,136,.10) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 75% 25%, rgba(237,232,226,.05) 0%, transparent 60%);
  z-index: 1;
}

/* Grain texture overlay */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  opacity: .5;
}

/* Hero background image (when uploaded) */
.hero-bg-image {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Dark overlay on top of image */
.hero-bg-image::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(20, 18, 14, .55);
}

/* Video background */
.hero-video-wrap {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #18160f;
}
.hero-video-iframe,
.hero-video-mp4 {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  pointer-events: none;
  object-fit: cover;
}
/* Dark overlay on video */
.hero-video-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(20,18,14,.5);
  z-index: 1;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 760px;
  padding: 0 32px;
}
.hero-eyebrow {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 28px;
  display: block;
  animation: fadeUp 1s ease-out .2s both;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 6.5vw, 5.4rem);
  font-weight: 300;
  color: var(--white);
  letter-spacing: .01em;
  line-height: 1.1;
  margin-bottom: 32px;
  animation: fadeUp 1s ease-out .4s both;
}
.hero h1 em { font-style: italic; color: rgba(250,248,245,.7); }
.hero-sub {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 200;
  color: rgba(250,248,245,.5);
  letter-spacing: .1em;
  max-width: 400px;
  margin: 0 auto 48px;
  animation: fadeUp 1s ease-out .6s both;
}

/* Ghost button */
.btn-ghost {
  display: inline-block;
  padding: 13px 38px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(250,248,245,.3);
  transition: all .4s;
  animation: fadeUp 1s ease-out .8s both;
}
.btn-ghost:hover { background: var(--white); color: var(--charcoal); border-color: var(--white); }

/* Scroll indicator */
.scroll-mark {
  position: absolute;
  bottom: 44px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 3;
  animation: fadeUp 1s ease-out 1s both;
}
.scroll-mark span {
  font-size: 1rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(250,248,245,.28);
}
.scroll-line {
  width: 1px; height: 44px;
  background: rgba(250,248,245,.15);
  overflow: hidden;
  position: relative;
  order: -1;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 1px; height: 100%;
  background: var(--brass);
  animation: scrollPulse 2.4s ease-in-out infinite;
}


/* ══════════════════════════════════════════
   INTRO STATEMENT
══════════════════════════════════════════ */
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 128px 80px;
  max-width: 1280px;
  margin: 0 auto;
  align-items: end;
}
.intro-headline {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.8vw, 3.6rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--charcoal);
}
.intro-headline em { font-style: italic; color: var(--brass); }
.intro-body { padding-bottom: 4px; }
.intro-body p {
  font-size: 1rem;
  line-height: 1.9;
  color: #666;
  margin-bottom: 28px;
}

/* Text link with arrow */
.link-text {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--charcoal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--taupe);
  padding-bottom: 2px;
  transition: color .3s, gap .3s;
}
.link-text:hover { color: var(--brass); gap: 16px; border-color: var(--brass); }


/* ══════════════════════════════════════════
   SERVICES
══════════════════════════════════════════ */
.services {
  background: var(--greige);
  padding: 100px 80px;
}
.services-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 64px;
  display: block;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--taupe);
}
.service-item {
  padding: 44px 28px;
  border-right: 1px solid var(--taupe);
  margin-right: -1px;
}
.service-item:first-child { padding-left: 0; }
.service-item:last-child { border-right: none; }
.service-num {
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--brass);
  margin-bottom: 20px;
  display: block;
}
.service-item h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 14px;
  color: var(--charcoal);
}
.service-item p { font-size: 1rem; color: #888; line-height: 1.8; }
.services-footer { margin-top: 52px; }


/* ══════════════════════════════════════════
   FEATURED PROJECT
══════════════════════════════════════════ */
.featured {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
}
.featured-bg {
  position: absolute; inset: 0;
  background: linear-gradient(125deg, #d4cec6 0%, #c4bbb0 45%, #a89880 100%);
}
.featured-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(20,18,14,.72) 0%, rgba(20,18,14,.25) 55%, transparent 100%);
}
/* When a real image is uploaded */
.featured-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute; inset: 0;
}
.featured-content {
  position: relative;
  z-index: 2;
  padding: 0 80px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 88vh;
  max-width: 580px;
  padding-bottom: 100px;
}
.featured-tag {
  font-family: var(--sans);
  font-size: 1rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 18px;
}
.featured-content h2 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 3.8vw, 3.4rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}
.featured-content p {
  font-size: 1rem;
  color: rgba(250,248,245,.65);
  line-height: 1.85;
  margin-bottom: 40px;
  max-width: 420px;
}
.btn-outline-light {
  display: inline-block;
  padding: 13px 36px;
  align-self: flex-start;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(250,248,245,.28);
  transition: all .4s;
}
.btn-outline-light:hover { background: rgba(250,248,245,.08); border-color: var(--white); }


/* ══════════════════════════════════════════
   STUDIO VOICE
══════════════════════════════════════════ */
.studio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1280px;
  margin: 0 auto;
  padding: 128px 80px;
  gap: 80px;
  align-items: center;
}
.studio-portrait {
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--greige) 0%, var(--taupe) 100%);
  position: relative;
  overflow: hidden;
}
.studio-portrait-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.studio-portrait-label {
  position: absolute;
  bottom: 32px; left: 32px;
  font-family: var(--sans);
  font-size: 1rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brass);
  opacity: .7;
}
.studio-text h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 28px;
  color: var(--charcoal);
}
.studio-text h2 em { font-style: italic; }
.studio-text p { font-size: 1rem; color: #666; line-height: 1.9; margin-bottom: 18px; }
.studio-text p:last-of-type { margin-bottom: 36px; }


/* ══════════════════════════════════════════
   LOOKBOOK STRIP
══════════════════════════════════════════ */
.lookbook-strip {
  background: var(--deep);
  padding: 100px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}
.lookbook-strip-text h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 18px;
}
.lookbook-strip-text p {
  font-family: var(--sans);
  font-size: 1rem;
  color: rgba(250,248,245,.5);
  max-width: 460px;
  line-height: 1.8;
}
.btn-solid {
  flex-shrink: 0;
  display: inline-block;
  padding: 16px 48px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--deep);
  background: var(--white);
  border: none;
  white-space: nowrap;
  transition: all .4s;
}
.btn-solid:hover { background: var(--brass); color: var(--white); }


/* ══════════════════════════════════════════
   CTA
══════════════════════════════════════════ */
.cta {
  background: var(--greige);
  padding: 140px 48px;
  text-align: center;
}
.cta h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 300;
  color: var(--charcoal);
  margin-bottom: 20px;
  line-height: 1.15;
}
.cta h2 em { font-style: italic; color: var(--brass); }
.cta p {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--mid);
  max-width: 480px;
  margin: 0 auto 48px;
  line-height: 1.8;
}
.btn-dark {
  display: inline-block;
  padding: 16px 52px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--charcoal);
  transition: all .4s;
}
.btn-dark:hover { background: var(--brass); }


/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer {
  background: var(--white);
  border-top: 1px solid var(--taupe);
  padding: 72px 80px 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 52px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--taupe);
}
.footer-logo {
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: .05em;
  color: var(--charcoal);
  display: block;
  margin-bottom: 14px;
}
.footer-tagline { font-size: 1rem; color: #aaa; line-height: 1.6; }
.footer-col h4 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 20px;
}
.footer-col a,
.footer-col li a {
  display: block;
  font-size: 1rem;
  color: #999;
  margin-bottom: 10px;
  transition: color .3s;
}
.footer-col a:hover { color: var(--brass); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }

.footer-newsletter p { font-size: 1rem; color: #999; margin-bottom: 16px; line-height: 1.6; }
.footer-newsletter-form { display: flex; }
.footer-newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--taupe);
  border-right: none;
  background: transparent;
  font-family: var(--sans);
  font-size: 1rem;
  outline: none;
  color: var(--charcoal);
  transition: border-color .3s;
}
.footer-newsletter-form input::placeholder { color: #bbb; }
.footer-newsletter-form input:focus { border-color: var(--brass); }
.footer-newsletter-form button {
  padding: 12px 20px;
  background: var(--charcoal);
  color: var(--white);
  border: 1px solid var(--charcoal);
  font-family: var(--sans);
  font-size: 1rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background .3s;
}
.footer-newsletter-form button:hover { background: var(--brass); border-color: var(--brass); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom span,
.footer-bottom a { font-size: 1rem; color: #bbb; }
.footer-bottom a:hover { color: var(--brass); }


/* ══════════════════════════════════════════
   LOOKBOOK POPUP
══════════════════════════════════════════ */
.popup-overlay {
  position: fixed; inset: 0;
  background: rgba(20,18,14,.75);
  z-index: 300;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s;
}
.popup-overlay:not([hidden]) {
  opacity: 1;
  pointer-events: all;
}
.popup-overlay[hidden] { display: flex !important; } /* override UA hidden, use opacity instead */

.popup-card {
  background: var(--white);
  max-width: 460px;
  width: 90%;
  padding: 60px 52px;
  text-align: center;
  position: relative;
}
.popup-close {
  position: absolute;
  top: 18px; right: 22px;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--mid);
}
.popup-card h3 {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 300;
  margin-bottom: 14px;
  line-height: 1.25;
  color: var(--charcoal);
}
.popup-card > p { font-size: 1rem; color: #888; line-height: 1.8; margin-bottom: 30px; }
.popup-form { display: flex; flex-direction: column; gap: 10px; }
.popup-form input {
  padding: 13px 18px;
  border: 1px solid var(--taupe);
  background: transparent;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--charcoal);
  outline: none;
  transition: border-color .3s;
}
.popup-form input:focus { border-color: var(--brass); }
.popup-form button {
  padding: 14px;
  background: var(--charcoal);
  color: var(--white);
  border: none;
  font-family: var(--sans);
  font-size: 1rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: background .3s;
}
.popup-form button:hover { background: var(--brass); }
.popup-fine { font-size: 1rem; color: #ccc; margin-top: 14px; }

/* ── Lookbook popup — disabled until email integration is connected ── */
#lookbookPopup { display: none !important; }


/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { top: -100%; }
  50%       { top: 100%; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ══════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 960px)
══════════════════════════════════════════ */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  nav { padding: 22px 28px; }
  nav.scrolled { padding: 16px 28px; }

  .intro { grid-template-columns: 1fr; gap: 44px; padding: 80px 32px; }
  .services { padding: 72px 32px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-item:nth-child(2) { border-right: none; }

  .featured-content { padding: 0 32px 80px; max-width: 100%; }
  .studio { grid-template-columns: 1fr; padding: 80px 32px; gap: 48px; }
  .studio-portrait { max-height: 440px; }

  .lookbook-strip { flex-direction: column; padding: 80px 32px; gap: 40px; align-items: flex-start; }
  .cta { padding: 96px 32px; }
  footer { padding: 60px 32px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}


/* ══════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 560px)
══════════════════════════════════════════ */
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-item { border-right: none; border-bottom: 1px solid var(--taupe); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .popup-card { padding: 48px 28px; }
}
