/* ─── May Bespoke — Design System ─── */
:root {
  --bg: #0a0a09;
  --bg-elevated: #141412;
  --bg-card: #1a1a17;
  --text: #e8e4dc;
  --text-muted: #8a8680;
  --accent: #c4a265;
  --accent-dim: rgba(196, 162, 101, 0.15);
  --line: rgba(232, 228, 220, 0.08);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Outfit', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 80px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

address {
  font-style: normal;
}

.container {
  width: min(1200px, 90vw);
  margin-inline: auto;
}

/* ─── Cursor Glow ─── */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 162, 101, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}

body:hover .cursor-glow {
  opacity: 1;
}

/* ─── Header ─── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s;
}

.header.scrolled {
  background: rgba(10, 10, 9, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(1200px, 90vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.logo span {
  font-style: italic;
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--accent) !important;
  color: var(--accent) !important;
  transition: background 0.3s, color 0.3s !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--bg) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 4rem) min(5vw, 4rem) 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-line {
  position: absolute;
  background: var(--line);
}

.hero-line--1 {
  top: 20%;
  left: -10%;
  width: 120%;
  height: 1px;
  transform: rotate(-3deg);
}

.hero-line--2 {
  top: 60%;
  right: -5%;
  width: 80%;
  height: 1px;
  transform: rotate(2deg);
}

.hero-line--3 {
  top: 0;
  left: 30%;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--line) 30%, var(--line) 70%, transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-left: clamp(1rem, 5vw, 4rem);
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 2rem;
}

.hero-title-line {
  display: block;
  font-size: clamp(3rem, 7vw, 5.5rem);
}

.hero-title-line--accent {
  font-style: italic;
  color: var(--accent);
  padding-left: clamp(2rem, 8vw, 6rem);
}

.hero-sub {
  max-width: 520px;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s, gap 0.3s;
}

.hero-scroll:hover {
  color: var(--accent);
  gap: 1.25rem;
}

/* ─── Marquee ─── */
.marquee {
  border-block: 1px solid var(--line);
  padding: 1.25rem 0;
  overflow: hidden;
  background: var(--bg-elevated);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

.marquee-track span {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.marquee-dot {
  color: var(--accent) !important;
  font-style: normal !important;
  font-size: 0.6rem !important;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─── Sections ─── */
.section-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 2rem;
}

.section-title em {
  font-style: italic;
  color: var(--accent);
}

.section-title--center {
  text-align: center;
}

/* ─── About ─── */
.about {
  padding: 8rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 6rem;
  align-items: end;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 520px;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  border-left: 1px solid var(--line);
  padding-left: 3rem;
}

.stat-num {
  font-family: var(--serif);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.5rem;
  display: block;
}

/* ─── Philosophy ─── */
.philosophy {
  padding: 8rem 0;
  background: var(--bg-elevated);
  border-block: 1px solid var(--line);
}

.philosophy-header {
  text-align: center;
  margin-bottom: 5rem;
}

.philosophy-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.philosophy-card {
  background: var(--bg);
  padding: 3rem 2.5rem;
  position: relative;
  transition: background 0.4s;
}

.philosophy-card:hover {
  background: var(--bg-card);
}

.philosophy-num {
  font-family: var(--serif);
  font-size: 3rem;
  color: var(--accent-dim);
  color: rgba(196, 162, 101, 0.2);
  line-height: 1;
  display: block;
  margin-bottom: 2rem;
}

.philosophy-card h3 {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.philosophy-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ─── Gallery ─── */
.gallery {
  padding: 8rem 0;
}

.gallery-header {
  max-width: 500px;
  margin-bottom: 4rem;
}

.gallery-desc {
  color: var(--text-muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: default;
  padding: 10px;
  background: linear-gradient(155deg, rgba(196, 162, 101, 0.07), rgba(26, 26, 23, 0.95));
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(232, 228, 220, 0.05);
}

.gallery-item__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #000;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.8s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item figcaption {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  z-index: 3;
  padding: 1.75rem 1.25rem 1rem;
  background: linear-gradient(to top, rgba(10, 10, 9, 0.92), rgba(10, 10, 9, 0.4) 60%, transparent);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease);
}

.gallery-item:hover figcaption {
  transform: translateY(0);
}

.gallery-tag {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.gallery-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
}

/* ─── Process ─── */
.process {
  padding: 8rem 0;
  background: var(--bg-elevated);
  border-block: 1px solid var(--line);
}

.process-inner {
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
}

.process-steps {
  list-style: none;
  margin-top: 4rem;
  text-align: left;
}

.process-steps li {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}

.process-steps li:last-child {
  border-bottom: none;
}

.step-num {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--accent);
  flex-shrink: 0;
  width: 2rem;
}

.process-steps strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.process-steps p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ─── Location ─── */
.location {
  padding: 8rem 0;
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.location-address {
  color: var(--text-muted);
  line-height: 2;
  margin-bottom: 1rem;
}

.location-link {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 2.5rem;
  transition: opacity 0.3s;
}

.location-link:hover {
  opacity: 0.7;
}

.location-address strong {
  color: var(--text);
  font-weight: 400;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.location-hours {
  margin-bottom: 2rem;
}

.location-hours p {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 300px;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}

.location-hours span:first-child {
  color: var(--text);
}

.location-phone {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--accent);
  transition: opacity 0.3s;
}

.location-phone:hover {
  opacity: 0.7;
}

.location-map {
  height: 480px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.location-map::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--accent);
  opacity: 0.15;
  pointer-events: none;
  z-index: 1;
  margin: 12px;
}

.location-map iframe {
  width: 100%;
  height: 100%;
  filter: grayscale(80%) contrast(1.1);
  transition: filter 0.6s;
}

.location-map:hover iframe {
  filter: grayscale(20%) contrast(1);
}

/* ─── Contact ─── */
.contact {
  padding: 8rem 0;
  border-top: 1px solid var(--line);
}

.contact-inner {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
}

.contact-desc {
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.contact-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.4s var(--ease);
}

.btn--primary {
  background: var(--accent);
  color: var(--bg);
}

.btn--primary:hover {
  background: #d4b87a;
}

.btn--outline {
  border: 1px solid var(--line);
  color: var(--text);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── Footer ─── */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--line);
  background: var(--bg-elevated);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.footer-tagline {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ─── Reveal Animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .hero {
    text-align: center;
    justify-content: center;
    padding-top: calc(var(--header-h) + 2rem);
  }

  .hero-content {
    padding-left: 0;
  }

  .hero-title-line--accent {
    padding-left: 0;
  }

  .hero-sub {
    margin-inline: auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-stats {
    flex-direction: row;
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 2rem;
    justify-content: space-around;
  }

  .philosophy-cards {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .location-grid {
    grid-template-columns: 1fr;
  }

  .location-map {
    height: 360px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1rem;
  }

  .about-stats {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .cursor-glow {
    display: none;
  }
}
