/* ============ RESET & VARIABLES ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, ul, form { margin: 0; padding: 0; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

:root {
  --sand: #FDFBF7;
  --sand-dim: #F5F0E6;
  --navy: #0E2338;
  --navy-soft: #14314D;
  --gold: #D4AF37;
  --gold-soft: #E5CC7A;
  --ink: #1C2A36;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-script: 'Great Vibes', cursive;
  --font-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  --container-w: 1180px;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-family: var(--font-heading); color: var(--navy); font-weight: 600; }
.script-accent {
  font-family: var(--font-script);
  color: var(--gold);
  font-size: 1.8rem;
  margin-bottom: 4px;
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  padding: 15px 34px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 2px;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  text-align: center;
}
.btn-primary {
  background: var(--navy);
  color: var(--sand);
  border-color: var(--navy);
}
.btn-primary:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: var(--sand); }
.btn-block { display: block; width: 100%; text-align: center; }

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  transition: box-shadow 0.25s ease;
}
.site-header.is-stuck { box-shadow: 0 6px 20px rgba(14, 35, 56, 0.08); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  color: var(--navy);
}
.logo-mark { color: var(--gold); font-size: 1.1rem; }
.logo-text { font-size: 1.25rem; letter-spacing: 0.02em; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.main-nav a {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--navy);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.main-nav a:hover { color: var(--gold); border-color: var(--gold); }
.main-nav a.nav-cta {
  background: var(--navy);
  color: var(--sand);
  padding: 10px 20px;
  border-radius: 2px;
}
.main-nav a.nav-cta:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,25,47,0.88) 0%, rgba(10,25,47,0.55) 48%, rgba(10,25,47,0.25) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding-top: 76px;
}
.hero .eyebrow { color: var(--gold-soft); }
.hero h1 {
  color: var(--sand);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 22px;
}
.hero-sub {
  color: rgba(253, 251, 247, 0.85);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 34px;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.hero .btn-primary { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.hero .btn-primary:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.hero .btn-ghost { color: var(--sand); border-color: rgba(253,251,247,0.6); }
.hero .btn-ghost:hover { background: var(--sand); color: var(--navy); }

/* ============ VALUES STRIP ============ */
.values-strip {
  background: var(--navy);
  padding: 40px 0;
  border-bottom: 3px solid var(--gold);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  color: var(--sand);
}
.value-icon {
  width: 40px;
  height: 40px;
  color: var(--gold);
}
.value-icon svg { width: 100%; height: 100%; }
.value-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ============ STORY ============ */
.story { padding: 110px 0; }
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.story-media img {
  border: 10px solid var(--sand);
  outline: 1px solid rgba(212,175,55,0.3);
  box-shadow: 0 20px 50px rgba(14, 35, 56, 0.15);
}
.story-content h2 { font-size: 2.2rem; margin-bottom: 22px; }
.story-content p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink);
  margin-bottom: 18px;
}
.story-signature {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--gold);
}

/* ============ GALLERY ============ */
.gallery { padding: 100px 0 120px; background: var(--sand-dim); }
.section-heading { text-align: center; max-width: 560px; margin: 0 auto 46px; }
.section-heading h2 { font-size: 2.2rem; margin-bottom: 14px; }
.section-sub { color: #4b5b68; line-height: 1.7; }

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.filter-btn {
  background: transparent;
  border: 1px solid rgba(14,35,56,0.25);
  color: var(--navy);
  padding: 9px 20px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 999px;
  transition: all 0.2s ease;
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-btn.is-active { background: var(--navy); border-color: var(--navy); color: var(--sand); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.gallery-card {
  background: var(--sand);
  cursor: pointer;
  border: 1px solid rgba(212,175,55,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px rgba(14,35,56,0.16);
}
.gallery-card-media {
  position: relative;
  aspect-ratio: 10 / 9;
  overflow: hidden;
  background: var(--sand-dim);
}
.gallery-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-card:hover .gallery-card-media img { transform: scale(1.06); }
.gallery-card-body { padding: 22px 22px 26px; text-align: center; }
.gallery-card-cat {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 6px;
}
.gallery-card-name { font-size: 1.3rem; margin-bottom: 8px; }
.gallery-card-price { font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.gallery-card-hint {
  margin-top: 10px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a97a3;
}
.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #7a8894;
  padding: 40px 0;
}

/* ============ NEWSLETTER ============ */
.newsletter {
  background: var(--navy);
  padding: 90px 0;
  text-align: center;
  position: relative;
}
.newsletter-inner { max-width: 560px; margin: 0 auto; }
.newsletter h2 { color: var(--sand); font-size: 2rem; margin-bottom: 16px; }
.newsletter-sub { color: rgba(253,251,247,0.8); line-height: 1.7; margin-bottom: 30px; }
.newsletter-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input {
  flex: 1 1 260px;
  padding: 15px 18px;
  border: 1px solid rgba(212,175,55,0.4);
  background: rgba(253,251,247,0.06);
  color: var(--sand);
  font-family: var(--font-body);
  font-size: 0.9rem;
  border-radius: 2px;
}
.newsletter-form input::placeholder { color: rgba(253,251,247,0.55); }
.newsletter-form input:focus { outline: none; border-color: var(--gold); }
.newsletter-msg { margin-top: 16px; color: var(--gold-soft); font-size: 0.85rem; min-height: 1.2em; }

/* ============ MODAL ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.is-open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 33, 0.72);
}
.modal-panel {
  position: relative;
  background: var(--sand);
  max-width: 960px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.modal-close {
  position: absolute;
  top: 14px; right: 18px;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--navy);
  z-index: 5;
}
.modal-close:hover { color: var(--gold); }
.modal-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.modal-media { background: var(--navy); padding: 28px; }
.modal-media-main { aspect-ratio: 10/9; overflow: hidden; margin-bottom: 14px; background: var(--sand); }
.modal-media-main img { width: 100%; height: 100%; object-fit: contain; }
.modal-thumbs { display: flex; gap: 10px; }
.modal-thumbs img {
  width: 64px; height: 64px; object-fit: cover;
  cursor: pointer; border: 2px solid transparent; opacity: 0.7;
  transition: all 0.2s ease;
}
.modal-thumbs img:hover, .modal-thumbs img.is-active { opacity: 1; border-color: var(--gold); }
.modal-info { padding: 40px; }
.modal-info h3 { font-size: 1.8rem; margin-bottom: 10px; }
.modal-price { color: var(--gold); font-weight: 700; font-size: 1.1rem; margin-bottom: 18px; }
.modal-desc { line-height: 1.75; color: var(--ink); margin-bottom: 22px; }
.modal-specs { margin-bottom: 28px; }
.modal-specs li {
  font-size: 0.85rem;
  color: #4b5b68;
  padding-left: 18px;
  position: relative;
  margin-bottom: 8px;
  line-height: 1.5;
}
.modal-specs li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
}
.modal-note { font-size: 0.72rem; color: #8a97a3; text-align: center; margin-top: 12px; }

/* ============ FOOTER ============ */
.site-footer { background: var(--ink); padding: 60px 0 30px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 30px;
  align-items: start;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(253,251,247,0.12);
}
.footer-brand { color: var(--sand); }
.footer-brand .logo-mark, .footer-brand .logo-text { color: var(--sand); }
.footer-brand p { margin-top: 10px; color: rgba(253,251,247,0.65); font-size: 0.85rem; line-height: 1.6; max-width: 340px; }
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.footer-links a {
  color: rgba(253,251,247,0.8);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-links a:hover { color: var(--gold); }
.footer-copy {
  text-align: center;
  color: rgba(253,251,247,0.45);
  font-size: 0.75rem;
  margin-top: 22px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--sand);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 24px 26px;
    border-bottom: 1px solid rgba(212,175,55,0.25);
    transform: translateY(-130%);
    opacity: 0;
    transition: all 0.25s ease;
  }
  .main-nav.is-open { transform: translateY(0); opacity: 1; }
  .main-nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid rgba(14,35,56,0.08); }
  .main-nav a.nav-cta { margin-top: 10px; text-align: center; }
  .nav-toggle { display: flex; }

  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .modal-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { align-items: flex-start; }
}

@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .hero { min-height: 100vh; }
  .modal-info { padding: 28px 24px; }
  .newsletter-form { flex-direction: column; }
}

/* ============================================================================
   BRAND MARK - the gold ML monogram replaces the old ✶ placeholder
   ============================================================================ */
.logo { gap: 12px; }
.logo-img { width: 42px; height: 42px; object-fit: contain; }
.logo-words { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text { font-size: 1.18rem; letter-spacing: 0.06em; text-transform: uppercase; }
.logo-sub {
  font-family: var(--font-script);
  font-size: 1.05rem;
  color: var(--gold);
  letter-spacing: 0.02em;
  margin-top: -2px;
}

/* ============ HERO ADDITION ============ */
.hero-note {
  margin-top: 22px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(253, 251, 247, 0.6);
}

/* ============================================================================
   COLLECTIONS - four doors into the gallery
   ============================================================================ */
.collections { padding: 100px 0 90px; }
.collections-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.collection-card {
  display: block;
  text-align: center;
  transition: transform 0.3s ease;
}
.collection-card:hover { transform: translateY(-6px); }
.collection-media {
  aspect-ratio: 10 / 9;
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--sand-dim);
  border: 1px solid rgba(212, 175, 55, 0.3);
}
.collection-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.collection-card:hover .collection-media img { transform: scale(1.05); }
.collection-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.collection-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #4b5b68;
  margin-bottom: 10px;
}
.collection-from {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
}

/* ============================================================================
   GALLERY ADDITIONS
   ============================================================================ */
.filter-count {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.66rem;
  opacity: 0.55;
}
.gallery-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(253, 251, 247, 0.94);
  color: var(--navy);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 5px 10px;
  border: 1px solid rgba(212, 175, 55, 0.5);
}
.gallery-badge.is-sold { background: var(--navy); color: var(--sand); }
.gallery-card { display: flex; flex-direction: column; }
.gallery-card-body { display: flex; flex-direction: column; flex: 1; }
.gallery-card-hint { margin-top: auto; padding-top: 10px; }
.gallery-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ============ MODAL ADDITION ============ */
.modal-status {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 18px;
  color: #4b5b68;
}
.modal-status.is-available { color: #2f7a52; }
.modal-status.is-sold { color: #a03b3b; }
.modal-thumbs:empty { display: none; }

/* ============ FOOTER ADDITION ============ */
.footer-logo {
  width: 44px; height: 44px;
  object-fit: contain;
  margin-bottom: 10px;
}
.footer-brand .logo-text {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================================================================
   REVEAL ON SCROLL - skipped entirely for reduced-motion visitors
   ============================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============ RESPONSIVE ADDITIONS ============ */
@media (max-width: 900px) {
  .collections-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .collections { padding: 70px 0 60px; }
}
@media (max-width: 600px) {
  .collections-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .collection-card h3 { font-size: 1.05rem; }
  .collection-card p { display: none; }
  .logo-img { width: 36px; height: 36px; }
  .logo-text { font-size: 1rem; }
}

/* Two-up gallery on phones - 19 pieces in a single column is a very long scroll. */
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .gallery-card-body { padding: 14px 12px 18px; }
  .gallery-card-name { font-size: 1rem; }
  .gallery-card-cat { font-size: 0.58rem; letter-spacing: 0.1em; }
  .gallery-card-price { font-size: 0.82rem; }
  .gallery-card-hint { font-size: 0.62rem; }
  .gallery-badge { font-size: 0.52rem; padding: 4px 7px; top: 8px; left: 8px; }
  .filter-btn { padding: 8px 14px; font-size: 0.66rem; }
}
