/* Demi's Atelier — Dior-inspired editorial luxury */

:root {
  --white: #ffffff;
  --off-white: #f7f7f7;
  --grey-light: #e8e8e8;
  --grey-mid: #999999;
  --grey-text: #666666;
  --black: #000000;
  --charcoal: #1a1a1a;

  --font-serif: 'Cormorant Garamond', 'Didot', 'Times New Roman', serif;
  --font-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --header-height: 56px;
  --subnav-height: 44px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.4s var(--ease);
}

.header--solid {
  background: var(--white);
  border-bottom: 1px solid var(--grey-light);
}

.header--solid .header-main,
.header--solid .subnav-link {
  color: var(--black);
}

.header--solid .menu-btn span {
  background: var(--black);
}

.header-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-height);
  padding: 0 1.5rem;
  color: var(--white);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-self: center;
}

.logo-mark {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.logo-wordmark {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.header-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  padding: 0.5rem;
}

.menu-btn {
  flex-direction: column;
  gap: 5px;
  justify-self: start;
  width: 24px;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

.menu-btn.active span:first-child {
  transform: rotate(45deg) translate(2px, 2px);
}

.menu-btn.active span:last-child {
  transform: rotate(-45deg) translate(2px, -2px);
}

/* Subnav */
.subnav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  height: var(--subnav-height);
  padding: 0 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.subnav::-webkit-scrollbar { display: none; }

.subnav-link {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.subnav-link:hover,
.subnav-link--active {
  border-bottom-color: currentColor;
}

.header--solid .subnav-link {
  color: var(--grey-text);
}

.header--solid .subnav-link--active {
  color: var(--black);
  border-bottom-color: var(--black);
}

/* Menu overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.menu-nav a {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--black);
  transition: opacity 0.3s;
}

.menu-nav a:hover {
  opacity: 0.5;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

/* ---- Cinematic films (Dior-style) ---- */
.film {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #000;
}

.film--hero {
  height: 100%;
  min-height: 100%;
}

.film-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.film-toggle {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--white);
  opacity: 0.85;
  transition: opacity 0.3s;
}

.film-toggle:hover {
  opacity: 1;
}

.film-toggle svg[hidden] {
  display: none;
}

.hero-title {
  position: absolute;
  bottom: 4.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--white);
  text-align: center;
  white-space: nowrap;
  z-index: 1;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.coming-soon-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, transparent 45%);
  pointer-events: none;
}

.coming-soon-label {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.75rem;
}

.coming-soon-title {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 7vw, 5rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--white);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

/* ---- Content sections ---- */
.section-light {
  background: var(--white);
  padding: 5rem 1.5rem;
}

.content-narrow {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.body-text {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--grey-text);
  letter-spacing: 0.01em;
}

.text-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--charcoal);
  text-decoration: underline;
  text-underline-offset: 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.text-link:hover {
  opacity: 0.6;
}

.read-more-content {
  margin-top: 1.5rem;
  animation: fadeIn 0.4s var(--ease);
}

.read-more-content[hidden] {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Show sections ---- */
.show {
  padding: 0;
  background: var(--white);
}

.show-copy {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 5rem 1.5rem 3rem;
}

.show .text-link {
  margin-top: 0;
}

.show-copy:last-child {
  padding: 2.5rem 1.5rem 5.5rem;
}

.show-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--black);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.show-desc {
  margin-bottom: 0;
}

.collection-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 920px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem 4rem;
}

.look-full {
  margin: 0;
  background: var(--off-white);
}

.look-full img {
  width: 100%;
  height: auto;
  display: block;
}

.look-full:first-child {
  grid-column: 1 / -1;
}

/* ---- Craft ---- */
.craft {
  padding-bottom: 6rem;
}

.craft-emblem-wrap {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.craft-emblem {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

/* ---- Contact ---- */
.contact {
  background: var(--off-white);
  padding: 5rem 1.5rem 6rem;
}

.contact-form {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-row {
  border-bottom: 1px solid var(--grey-light);
}

.form-row input,
.form-row select {
  width: 100%;
  padding: 1rem 0;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--charcoal);
  background: transparent;
  border: none;
  outline: none;
}

.form-row input::placeholder {
  color: var(--grey-mid);
  letter-spacing: 0.04em;
}

.form-row select {
  cursor: pointer;
  color: var(--grey-mid);
}

.submit-btn {
  margin-top: 2rem;
  padding: 0.85rem 2.5rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--black);
  align-self: center;
  transition: opacity 0.3s;
}

.submit-btn:hover {
  opacity: 0.75;
}

/* ---- Footer ---- */
.footer {
  background: var(--white);
  border-top: 1px solid var(--grey-light);
  padding: 4rem 1.5rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.footer-col h3 {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 1.25rem;
}

.footer-col p,
.footer-col a {
  font-size: 0.75rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--grey-text);
}

.footer-col a:hover {
  color: var(--black);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--grey-light);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.7rem;
  color: var(--grey-mid);
  letter-spacing: 0.04em;
}

/* ---- Toast ---- */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--black);
  color: var(--white);
  padding: 0.85rem 1.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  z-index: 10000;
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ---- Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .logo-wordmark {
    display: none;
  }

  .subnav {
    justify-content: flex-start;
    gap: 1.25rem;
    padding: 0 1rem;
  }

  .hero-title {
    bottom: 3rem;
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .section-light {
    padding: 3.5rem 1.25rem;
  }

  .collection-gallery {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1.25rem 3rem;
  }

  .show {
    padding-bottom: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  html { scroll-behavior: auto; }
}
