/* ═══════════════════════════════════════════════════════════════
   MAISON KARU — Homepage Page Styles
   Extracted from the original index.html <style> block.
═══════════════════════════════════════════════════════════════ */

/* ── PAGE-LEVEL RESET ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #F2EDE4;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* ═══ VIDEO HERO (Hero 1) ═══ */
.hero-video {
  height: 100dvh;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  margin: 0;
  padding: 0;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  z-index: 0;
}

.hero-video::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #c9c0b5;
  z-index: -1;
}

.hero-video-overlay {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.38) 30%, rgba(0,0,0,0.00) 55%);
  pointer-events: none;
  z-index: 1;
}

.hero-video .hero-content {
  position: relative;
  z-index: 2;
  padding: 0 48px 52px;
  max-width: 620px;
}

/* Gold progress bar */
.hero-video-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(200,160,80,0.15);
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.hero-video-progress-fill {
  height: 100%;
  width: 0%;
  background: #C8A050;
  transition: width 0.25s linear;
  border-radius: 0 1px 1px 0;
}

/* Pause button */
.video-control-btn {
  position: absolute;
  bottom: 42px;
  right: 36px;
  z-index: 3;
  background: rgba(0,0,0,0.45);
  border: 0.5px solid rgba(200,160,80,0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.72;
  transition: opacity 0.28s ease, background 0.28s ease, border-color 0.28s ease, transform 0.22s ease;
}

.video-control-btn:hover {
  opacity: 1;
  background: rgba(0,0,0,0.65);
  border-color: rgba(200,160,80,0.80);
}

.video-control-btn:active { transform: scale(0.93); }

.video-control-btn svg {
  width: 9px;
  height: 9px;
  fill: #fff;
  flex-shrink: 0;
}

.video-control-btn .icon-pause { display: block; }
.video-control-btn .icon-play  { display: none;  }
.video-control-btn.paused .icon-pause { display: none;  }
.video-control-btn.paused .icon-play  { display: block; }

/* Sound button */
.video-sound-btn {
  position: absolute;
  bottom: 42px;
  right: 74px;
  z-index: 3;
  background: rgba(0,0,0,0.45);
  border: 0.5px solid rgba(200,160,80,0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.72;
  transition: opacity 0.28s ease, background 0.28s ease, border-color 0.28s ease, transform 0.22s ease;
}

.video-sound-btn:hover {
  opacity: 1;
  background: rgba(0,0,0,0.65);
  border-color: rgba(200,160,80,0.80);
}

.video-sound-btn:active { transform: scale(0.93); }

.video-sound-btn svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.video-sound-btn .icon-muted   { display: block; }
.video-sound-btn .icon-unmuted { display: none;  }
.video-sound-btn.unmuted .icon-muted   { display: none;  }
.video-sound-btn.unmuted .icon-unmuted { display: block; }

@media (max-width: 600px) {
  .video-sound-btn   { bottom: 30px; right: 58px; width: 28px; height: 28px; }
  .video-control-btn { bottom: 30px; right: 18px; width: 28px; height: 28px; }
}

/* ═══ IMAGE HERO (Hero 2) ═══ */
.hero-image {
  height: 100dvh;
  min-height: 100vh;
  width: 100%;
  background-color: #c9c0b5;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  position: relative;
}

.hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.12) 28%, rgba(0,0,0,0.00) 55%);
  pointer-events: none;
}

/* ═══ HERO CONTENT — SHARED ═══ */
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 48px 52px;
  max-width: 620px;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 0;
  text-shadow: 0 2px 18px rgba(0,0,0,0.18);
}

.hero-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(10px, 1vw, 13px);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.88);
  margin-bottom: 22px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}

.hero-gold-sep {
  display: block;
  width: 56px;
  height: 1px;
  background: #C8A050;
  margin: 14px 0 18px;
}

.hero-cta {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.90);
  padding: 10px 24px;
  transition: background 0.28s, border-color 0.28s;
}

.hero-cta:hover {
  background: rgba(200,160,80,0.15);
  border-color: #C8A050;
}

/* ── Word fade-up ── */
.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s cubic-bezier(0.22,0.61,0.36,1),
              transform 0.55s cubic-bezier(0.22,0.61,0.36,1);
  will-change: opacity, transform;
  white-space: nowrap;
}

.hero-word.visible { opacity: 1; transform: translateY(0); }

.hero-gold-sep {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s cubic-bezier(0.22,0.61,0.36,1),
              transform 0.5s cubic-bezier(0.22,0.61,0.36,1);
}

.hero-gold-sep.visible { opacity: 1; transform: translateY(0); }

.hero-cta {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s cubic-bezier(0.22,0.61,0.36,1),
              transform 0.5s cubic-bezier(0.22,0.61,0.36,1),
              background 0.28s ease,
              border-color 0.28s ease;
}

.hero-cta.visible { opacity: 1; transform: translateY(0); }

/* Hero 2 static — bypass animation */
.hero-image .hero-cta,
.hero-image .hero-gold-sep,
.hero-image .hero-subtitle {
  opacity: 1;
  transform: translateY(0);
  transition: background 0.28s ease, border-color 0.28s ease;
}

/* ═══ KARU LOADING SCREEN ═══ */
#karu-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.9s cubic-bezier(0.4,0,0.2,1);
}

#karu-loader.fadeout { opacity: 0; }
#karu-loader.gone    { display: none; }

#karu-loader-logo {
  width: clamp(140px, 20vw, 220px);
  height: auto;
  display: block;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s cubic-bezier(0.22,0.61,0.36,1),
              transform 0.8s cubic-bezier(0.22,0.61,0.36,1);
}

#karu-loader-logo.visible { opacity: 1; transform: translateY(0); }

/* ── Scroll indicator ── */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-scroll-indicator.visible { opacity: 1; }
.hero-scroll-indicator.hidden  { opacity: 0 !important; }

.hero-scroll-line {
  width: 1px;
  height: 52px;
  background: rgba(200,160,80,0.65);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 1px;
  height: 60%;
  background: linear-gradient(to bottom, transparent 0%, #C8A050 35%, #C8A050 65%, transparent 100%);
  animation: scrollPulse 1.9s cubic-bezier(0.4,0,0.6,1) infinite;
}

@keyframes scrollPulse {
  0%   { top: -70%;  }
  100% { top: 160%;  }
}

.hero-scroll-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #fff;
}

/* ═══ PRODUCT GRID ═══ */
.products-grid-section {
  background: #fffef8;
  padding: 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.product-card-static {
  background: #F2EDE4;
  height: 75vh;
  min-height: 480px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  cursor: default;
}

.product-card-static .img-sketch,
.product-card-static .img-real {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  mix-blend-mode: multiply;
  transition: opacity 0.45s ease, transform 0.45s ease, filter 0.4s ease;
}

.product-card-static .img-real { opacity: 0; }

.card-blur .img-sketch {
  filter: blur(12px);
  opacity: 0.55;
}

.muna-card { cursor: pointer; }

@media (hover: hover) and (pointer: fine) {
  .muna-card:hover .img-sketch { opacity: 0; transform: scale(1.04); }
  .muna-card:hover .img-real   { opacity: 1; transform: scale(1.04); }
}

.muna-card.revealed .img-sketch { opacity: 0; transform: scale(1.04); }
.muna-card.revealed .img-real   { opacity: 1; transform: scale(1.04); }

.card-label {
  position: absolute;
  bottom: 40px;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 10;
}

.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #111;
  margin-bottom: 6px;
}

.card-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #555;
}

.card-subname {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.03em;
  color: #222;
  margin-top: 8px;
  padding: 0 16px;
}

/* ═══ SPLIT BANNERS ═══ */
.split-banners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: 100dvh;
  min-height: 100vh;
}

.banner-panel {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  height: 100%;
}

.banner-panel .banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transition: transform 0.75s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}

.banner-panel:hover .banner-bg { transform: scale(1.04); }

.banner-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.20) 30%, rgba(0,0,0,0.00) 60%);
  pointer-events: none;
}

.banner-content {
  position: absolute;
  bottom: 36px;
  left: 32px;
  z-index: 2;
  color: #fff;
}

.banner-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(15px, 1.8vw, 24px);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 8px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.25);
}

.banner-cta {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.65);
  padding-bottom: 2px;
  transition: border-color 0.2s, opacity 0.2s;
}

.banner-cta:hover { border-color: #fff; opacity: 0.72; }

/* ── .banner-bg-link full-cover ── */
.banner-bg-link {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 0;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 860px) {
  .product-card-static.card-blur { display: none !important; }
  .products-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 860px) {
  .products-grid { grid-template-columns: 1fr; gap: 8px; }
  .product-card-static { height: 65vh; min-height: 380px; }
}

@media (max-width: 680px) {
  .split-banners { grid-template-columns: 1fr; height: auto; min-height: unset; }
  .banner-panel  { height: 65dvh; min-height: unset; }
  .banner-content { bottom: 28px; left: 22px; }
  .banner-title   { font-size: clamp(15px, 5vw, 20px); }
}

@media (max-width: 600px) {
  .hero-scroll-indicator { bottom: 20px; top: unset; transform: translateX(-50%); }
  .hero-scroll-line  { height: 36px; }
  .hero-scroll-label { font-size: 7px; letter-spacing: 0.22em; }
  .hero-video        { height: 100svh; width: 100%; }
  .hero-video .hero-content { padding: 0 20px 36px; max-width: 100%; }
  .hero-content      { padding: 0 20px 36px; }
  .hero-title        { font-size: clamp(30px, 9vw, 44px); }
  .hero-gold-sep     { margin: 12px 0 16px; }
}
