/*
Theme Name: Mousumia
Theme URI: https://mousumia.com
Author: Mousumia Studio
Author URI: https://mousumia.com
Description: A luxury fashion theme for Mousumia — The New Collection. Fully customizable via the WordPress Customizer with support for hero videos, bridal images, grid sections, featured quotes, services, and footer.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
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: mousumia
Tags: fashion, luxury, full-width-template, custom-colors, custom-logo, featured-images, theme-options
*/

/* ═══════════════════════════════════════════
   MOUSUMIA — Main Stylesheet
   All layout/component CSS lives here.
════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --forest:    #1B3022;
  --white:     #ffffff;
  --offwhite:  #f7f5f1;
  --gold:      #c9a96e;
  --text-dark: #1a1a1a;
}

html { scroll-behavior: auto; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--forest);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ── HEADER ─────────────────────────────── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--forest);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  transition: background 0.4s, backdrop-filter 0.4s;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}
.header-right { justify-content: flex-end; }

.header-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.35em;
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s;
}
.hamburger:hover span,
.hamburger.is-active span { background: var(--gold); }

.header-icon {
  color: var(--white);
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  background: none;
  border: none;
  text-decoration: none;
  position: relative;
}
.header-icon:hover { opacity: 1; color: var(--gold); }
.header-icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; display: block; }

/* ── NAV DRAWER ─────────────────────────── */
.nav-drawer {
  position: fixed;
  top: 0; left: -320px;
  width: 300px;
  height: 100%;
  background: var(--forest);
  z-index: 99999;
  padding: 80px 40px 40px;
  transition: left 0.4s cubic-bezier(0.77,0,0.18,1);
  overflow-y: auto;
}
.nav-drawer.is-open { left: 0; }

.nav-drawer-close {
  position: absolute;
  top: 24px; right: 24px;
  background: none; border: none;
  color: var(--white);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.nav-drawer-close:hover { opacity: 1; }

.nav-drawer-menu { list-style: none; }
.nav-drawer-menu li { border-bottom: 1px solid rgba(255,255,255,0.08); }
.nav-drawer-menu a {
  display: block;
  padding: 16px 0;
  color: var(--white);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 400;
  transition: color 0.2s, letter-spacing 0.2s;
}
.nav-drawer-menu a:hover { color: var(--gold); letter-spacing: 0.35em; }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  backdrop-filter: blur(2px);
}
.nav-overlay.is-visible { display: block; }

/* ── SEARCH OVERLAY ─────────────────────── */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27,48,34,0.97);
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.search-overlay.is-open { opacity: 1; pointer-events: all; }

.search-overlay-close {
  position: absolute;
  top: 24px; right: 32px;
  background: none; border: none;
  color: var(--white); cursor: pointer;
  opacity: 0.7; transition: opacity 0.2s;
}
.search-overlay-close:hover { opacity: 1; }

.search-form {
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 12px;
  width: min(600px, 90vw);
  gap: 16px;
}
.search-field {
  flex: 1;
  background: none; border: none; outline: none;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.08em;
}
.search-field::placeholder { color: rgba(255,255,255,0.3); }
.search-submit {
  background: none; border: none;
  color: var(--white); cursor: pointer;
  font-size: 10px; letter-spacing: 0.3em;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
  opacity: 0.7; transition: opacity 0.2s;
}
.search-submit:hover { opacity: 1; }

/* ── CURTAIN SYSTEM ─────────────────────── */
#curtain-wrapper { position: relative; }

.curtain-panel {
  position: sticky;
  top: 0;
  overflow: hidden;
  will-change: clip-path;
}

.hero-inner {
  width: 100%;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -12%;
  background-size: cover;
  background-position: center;
  will-change: transform;
  transform: scale(1.12) translateY(0%);
}

.hero-video {
  position: absolute;
  inset: -12%;
  width: 124%;
  height: 124%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
  transform: scale(1.12) translateY(0%);
  background: none;
}

.hero-overlay { position: absolute; inset: 0; }

#p1 .hero-overlay { background: rgba(0,0,0,0.30); }
#p2 .hero-overlay { background: rgba(10,20,12,0.42); }
#p3 .hero-overlay { background: rgba(0,0,0,0.27); }

.section-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
}

/* ── HERO TYPOGRAPHY ────────────────────── */
.hero-tag {
  font-size: 10px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.68);
  margin-bottom: 18px;
  font-weight: 400;
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 42px;
}

.hero2-sub {
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
  font-weight: 400;
}

.hero2-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(48px, 9vw, 108px);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.0;
  margin-bottom: 38px;
  font-style: italic;
}

/* ── GHOST BUTTONS ──── */
.ghost-btn {
  display: inline-block;
  padding: 14px 44px;
  border: 1px solid rgba(255,255,255,0.65);
  color: var(--white);
  text-decoration: none;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s, color 0.4s, transform 0.2s ease-out, box-shadow 0.2s ease-out;
  z-index: 0;
  will-change: transform;
  font-family: 'Montserrat', sans-serif;
}
.ghost-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--forest);
  transform: translateX(-101%);
  transition: transform 0.45s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: -1;
}
.ghost-btn:hover::before { transform: translateX(0); }
.ghost-btn:hover {
  border-color: var(--forest);
  color: var(--white);
  box-shadow: 0 8px 32px rgba(27,48,34,0.35);
}
.ghost-btn--dark {
  color: var(--forest);
  border-color: var(--forest);
}
.ghost-btn--dark:hover { color: var(--white); border-color: var(--forest); }

/* ── TEXT LINK ── */
.text-link {
  display: inline-block;
  color: var(--white);
  text-decoration: none;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding-bottom: 4px;
  position: relative;
  transition: opacity 0.3s;
}
.text-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 1px;
  background: rgba(255,255,255,0.65);
  transform: translateX(-50%);
  transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}
.text-link:hover { opacity: 0.85; }
.text-link:hover::after { width: 100%; }

/* ── BREATHING SPACE (below hero) ────────── */
#breathing-space {
  background: var(--offwhite);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 50;
  overflow: hidden;
}

.breath-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(560px, 80vw);
}

.breath-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(27,48,34,0.25), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.breath-inner.visible .breath-line { transform: scaleX(1); }

.breath-text {
  font-size: 9px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: rgba(27,48,34,0.55);
  font-weight: 400;
  white-space: nowrap;
  font-family: 'Montserrat', sans-serif;
  opacity: 0;
  transition: opacity 0.9s ease 0.4s;
}

.breath-inner.visible .breath-text { opacity: 1; }
/* ── BREATHING SPACE — Featured variant ── */
.breathing-space-alt {
  background: var(--offwhite);
  padding: 56px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 50;
  overflow: hidden;
}
/* ── CURATED GRID ────────────────────────── */
#grid-anchor { position: relative; z-index: 50; margin: 0; padding: 0; }

#curated-grid {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  height: 70vh;
  margin: 0; padding: 0;
}

.grid-cell { position: relative; overflow: hidden; }
.grid-cell img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.8s ease-out;
  will-change: transform;
}
.grid-cell:hover img { transform: scale(1.05); }
.grid-cell::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.8s ease-out;
  pointer-events: none;
  z-index: 1;
}
.grid-cell:hover::after { background: rgba(0,0,0,0.15); }

.grid-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.18);
  display: flex; align-items: flex-end; padding: 40px;
  z-index: 2;
}

.grid-label {
  color: var(--white);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1.9;
  opacity: 0.7;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.grid-cell:hover .grid-label { opacity: 1; transform: translateY(-5px); }

/* ── GRID DIVIDER ───────────────────────── */
.grid-divider {
  background: var(--offwhite);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.grid-divider-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  height: 55%;
}

.gdiv-line {
  flex: 1;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(27,48,34,0.3), transparent);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.grid-divider.visible .gdiv-line { transform: scaleY(1); }

.gdiv-text {
  font-size: 7.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(27,48,34,0.45);
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  line-height: 2;
  opacity: 0;
  transition: opacity 0.8s ease 0.5s;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}

.grid-divider.visible .gdiv-text { opacity: 1; }

/* ── FEATURED SECTION ────────────────────── */
#featured {
  background: var(--offwhite);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  min-height: 80vh;
}

.feat-col { display: flex; flex-direction: column; }
.feat-img { position: relative; flex: 1; overflow: hidden; }
.feat-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.8s ease-out;
  will-change: transform;
}
.feat-img:hover img { transform: scale(1.05); }
.feat-img::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.8s ease-out;
  pointer-events: none;
}
.feat-img:hover::after { background: rgba(0,0,0,0.15); }

.feat-quote {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 48px;
  background: var(--white);
  text-align: center; min-height: 100%;
}

.feat-quote-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(18px, 2vw, 26px);
  font-style: italic; font-weight: 300;
  line-height: 1.75; color: var(--text-dark);
  margin-bottom: 32px; max-width: 280px;
  opacity: 0.7;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.feat-quote:hover .feat-quote-text { opacity: 1; transform: translateY(-5px); }

.feat-quote-line {
  width: 40px; height: 1px;
  background: var(--gold);
  margin: 0 auto 28px;
}

/* ── SERVICES ────────────────────────────── */
#services {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  height: 55vh;
}

.service-card { position: relative; overflow: hidden; cursor: pointer; }
.service-card img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.8s ease-out;
  filter: brightness(0.62);
  will-change: transform;
}
.service-card:hover img { transform: scale(1.05); filter: brightness(0.5); }

.service-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 32px;
  color: var(--white);
  z-index: 2;
}

.service-link-wrap {
  display: flex; flex-direction: column;
  align-items: center;
  text-decoration: none; color: inherit;
}

.service-title {
  font-size: 11px; letter-spacing: 0.32em;
  text-transform: uppercase; font-weight: 500;
  margin-bottom: 14px;
  opacity: 0.7;
  transition: letter-spacing 0.3s, opacity 0.5s, transform 0.5s;
}
.service-card:hover .service-title {
  letter-spacing: 0.42em;
  opacity: 1;
  transform: translateY(-5px);
}

.service-divider {
  width: 30px; height: 1px;
  background: rgba(255,255,255,0.5);
  margin: 0 auto 14px;
}

.service-sub {
  font-size: 10px; letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  font-weight: 300; line-height: 1.9;
  opacity: 0.7;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.service-card:hover .service-sub { opacity: 1; transform: translateY(-5px); }

/* ── FOOTER ──────────────────────────────── */
.site-footer {
  background: var(--forest);
  color: var(--white);
  padding: 72px 64px 40px;
}

.footer-top {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; margin-bottom: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-signup h3 {
  font-size: 10px; letter-spacing: 0.3em;
  text-transform: uppercase; font-weight: 400;
  margin-bottom: 28px; color: rgba(255,255,255,0.72);
}

.email-input-wrap {
  display: flex; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 10px; max-width: 360px; gap: 12px;
}
.email-input-wrap input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; letter-spacing: 0.18em; font-weight: 300;
}
.email-input-wrap input::placeholder { color: rgba(255,255,255,0.28); }

.email-submit {
  background: none; border: none; color: var(--white);
  cursor: pointer; font-size: 16px; opacity: 0.6;
  transition: opacity 0.2s; line-height: 1;
}
.email-submit:hover { opacity: 1; }

.newsletter-msg {
  font-size: 10px; letter-spacing: 0.15em;
  text-transform: uppercase; margin-top: 12px;
  min-height: 16px; color: var(--gold);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 32px;
}

.footer-col h4 {
  font-size: 9px; letter-spacing: 0.3em;
  text-transform: uppercase; font-weight: 600;
  color: rgba(255,255,255,0.45); margin-bottom: 20px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.68);
  text-decoration: none;
  font-size: 11px; letter-spacing: 0.1em; font-weight: 300;
  position: relative; padding-bottom: 2px;
  transition: color 0.25s;
}
.footer-col ul li a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 1px;
  background: rgba(255,255,255,0.6);
  transform: translateX(-50%);
  transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}
.footer-col ul li a:hover { color: var(--white); }
.footer-col ul li a:hover::after { width: 100%; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
}

.social-icons { display: flex; gap: 20px; }
.social-icons a {
  color: rgba(255,255,255,0.42);
  transition: color 0.2s; display: flex; align-items: center;
}
.social-icons a:hover { color: var(--white); }
.social-icons svg { width: 16px; height: 16px; }

.copyright {
  font-size: 9px; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,255,255,0.26); font-weight: 400;
}

/* ── HERO PICTURE (Panel 2) ──── */
.hero-picture {
  position: absolute; inset: 0;
  width: 100%; height: 100%; display: block;
}
.hero-picture img {
  position: absolute;
  inset: -6%;
  width: 112%; height: 112%;
  object-fit: cover;
  object-position: center top;
  display: block;
  will-change: transform;
  transform: scale(1.06) translateY(0%);
}

/* ── PANEL 3 MOBILE BG ──── */
@media (max-width: 768px) {
  #p3-mobile-bg { display: block !important; }
  #p3-bg { display: none !important; }
}
@media (min-width: 769px) {
  #p3-mobile-bg { display: none !important; }
  #p3-bg { display: block; }
  #p2 .hero-picture { display: block; }
}

/* ── REVEAL ANIMATIONS ──────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.30s; }

.split-heading { overflow: visible; }
.split-heading .word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  margin-right: 0.22em;
}
.split-heading .word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}
.split-heading.visible .word { transform: translateY(0); opacity: 1; }

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 1024px) {
  .footer-nav { grid-template-columns: repeat(2,1fr); gap: 28px; }
}

@media (max-width: 768px) {
  #site-header { padding: 0 20px; }
  #curated-grid { grid-template-columns: 1fr 40px 1fr; height: 52vw; }
  .grid-cell { height: 52vw; }
  .grid-divider { height: 100%; width: 40px; }
  .grid-divider-inner { height: 60%; gap: 14px; }
  .gdiv-text { font-size: 6.5px; letter-spacing: 0.25em; }
  #featured { grid-template-columns: 1fr; }
  .feat-quote { min-height: 280px; }
  .feat-img { min-height: 60vw; }
  #services { grid-template-columns: 1fr; height: auto; }
  .service-card { height: 220px; }
  .site-footer { padding: 48px 24px 32px; }
  .footer-top { grid-template-columns: 1fr; gap: 48px; }
  .footer-nav { grid-template-columns: repeat(2,1fr); }
  .footer-bottom { flex-direction: column; gap: 24px; text-align: center; }
  .social-icons { justify-content: center; }
  #breathing-space { padding: 28px 24px; }
}

@media (max-width: 480px) {
  .footer-nav { grid-template-columns: 1fr; }
}