/* ============================================================
   Merlot Made: sister-brand page (merlot-made.php only)
   Loaded after styles.css. Palette and type follow the Canva draft.
   ============================================================ */
:root {
  --mm-merlot:   #8a1c40;
  --mm-wine:     #5e1029;
  --mm-deep:     #3d0a1b;
  --mm-pink:     #f6c7d6;
  --mm-pink-lt:  #fbe3eb;
  --mm-pink-hot: #f48fb6;
  --mm-cream:    #fdf6ee;
  --mm-ink:      #0b0b0b;
  --mm-display:  'Instrument Serif', Georgia, serif;
  --mm-caps:     'Playfair Display', Georgia, serif;
}

.mm-page h1, .mm-page h2, .mm-page h3 { letter-spacing: -0.01em; }
.mm-display { font-family: var(--mm-display); font-weight: 400; letter-spacing: -0.01em; line-height: 1.02; }
.mm-caps { font-family: var(--mm-caps); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
.mm-eyebrow {
  display: block; margin-bottom: 14px;
  font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mm-merlot);
}
.mm-inner { max-width: 1200px; margin: 0 auto; }
.mm-section { padding: 100px 32px; }

/* ---------- Buttons ---------- */
.mm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 30px; border-radius: 999px;
  background: var(--mm-merlot); color: #fff; border: 2px solid var(--mm-merlot);
  font-size: 16px; font-weight: 700; letter-spacing: .02em;
  transition: background .15s, border-color .15s, transform .2s;
}
.mm-btn:hover { background: var(--mm-wine); border-color: var(--mm-wine); color: #fff; transform: translateY(-2px); }
.mm-btn--light { background: var(--mm-cream); border-color: var(--mm-cream); color: var(--mm-merlot); }
.mm-btn--light:hover { background: #fff; border-color: #fff; color: var(--mm-wine); }
.mm-btn--outline { background: transparent; border-color: rgba(255,255,255,.85); color: #fff; }
.mm-btn--outline:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.mm-btn--block { width: 100%; }

/* ---------- Hero ---------- */
.mm-hero {
  position: relative; min-height: clamp(560px, 80vh, 780px);
  display: flex; align-items: center; overflow: hidden;
  background: var(--mm-wine) url('../images/mm-hero.webp') left center / cover no-repeat;
}
.mm-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(94,16,41,0) 30%, rgba(94,16,41,.82) 62%, var(--mm-wine) 100%);
}
.mm-hero-inner { position: relative; z-index: 1; width: 100%; max-width: 1320px; margin: 0 auto; padding: 80px 32px; display: flex; justify-content: flex-end; }
.mm-hero-panel { width: min(480px, 100%); text-align: center; }
.mm-hero-logo {
  width: 100%; height: auto; margin: 0 auto 8px; transform-origin: 50% 70%;
  animation: mmLogoIn 1.1s cubic-bezier(.34,1.56,.64,1) both, mmLogoFloat 4.5s ease-in-out 1.2s infinite;
}
/* bouncy pop-in, then a gentle float and sway */
@keyframes mmLogoIn {
  0%   { opacity: 0; transform: translateY(40px) scale(.55) rotate(-8deg); }
  60%  { opacity: 1; transform: translateY(-10px) scale(1.06) rotate(3deg); }
  80%  { transform: translateY(4px) scale(.98) rotate(-1deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes mmLogoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25%      { transform: translateY(-9px) rotate(-1.5deg); }
  50%      { transform: translateY(-3px) rotate(0deg); }
  75%      { transform: translateY(-10px) rotate(1.5deg); }
}
@media (prefers-reduced-motion: reduce) { .mm-hero-logo { animation: none; } }
.mm-hero h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mm-hero-sub { color: #fff; font-size: 18px; line-height: 1.7; margin: 8px auto 30px; max-width: 400px; }
@media (max-width: 991px) {
  .mm-hero { align-items: flex-end; background-position: 30% center; }
  .mm-hero::before { background: linear-gradient(180deg, rgba(94,16,41,.1) 0%, rgba(94,16,41,.85) 55%, var(--mm-wine) 100%); }
  .mm-hero-inner { justify-content: center; padding: 220px 20px 56px; }
}

/* New hero (v2): portrait product shot pinned left, its right edge melting into the wine panel */
.mm-hero--v2 { background: linear-gradient(90deg, #7d1432 0%, var(--mm-wine) 70%); }
.mm-hero--v2::before { display: none; }
.mm-hero--v2::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: max(0px, calc(50% - 720px)); z-index: 0;
  aspect-ratio: 4 / 5;
  background: url('../images/mm-hero-v2.webp') center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, #000 72%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 72%, transparent 100%);
}
@media (min-width: 1440px) {
  /* wide screens: the photo floats off the left edge, so soften that side too */
  .mm-hero--v2::after {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 72%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 72%, transparent 100%);
  }
}
@media (max-width: 991px) {
  .mm-hero--v2 { background: var(--mm-wine); }
  .mm-hero--v2::after {
    left: 0; right: 0; bottom: auto; height: min(78%, 125vw); aspect-ratio: auto;
    background-position: center 35%;
    -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
  }
  .mm-hero--v2 .mm-hero-inner { padding-top: min(62vh, 100vw); }
}

/* ---------- Intro ---------- */
.mm-intro { background: var(--mm-cream); }
.mm-intro h2 { font-size: clamp(44px, 6vw, 76px); color: var(--mm-merlot); margin-bottom: 26px; }
.mm-intro .mm-lede { font-size: 20px; font-weight: 700; color: var(--mm-merlot); margin-bottom: 14px; }
.mm-intro p { font-size: 17px; color: #4a2030; line-height: 1.8; margin-bottom: 16px; }
.mm-intro-img { border-radius: 4px; box-shadow: 0 24px 60px rgba(61,10,27,.22); width: 100%; height: auto; }

/* ---------- Quote strip ---------- */
.mm-strip { height: clamp(140px, 18vw, 240px); background: url('../images/mm-desk-strip.webp') center 40% / cover no-repeat; }
.mm-quote { background: var(--mm-cream); padding: 44px 32px 56px; text-align: center; }
.mm-quote blockquote { font-family: var(--mm-display); font-style: italic; font-size: clamp(26px, 3.2vw, 40px); color: var(--mm-ink); line-height: 1.25; max-width: 900px; margin: 0 auto; }

/* ---------- Product carousel ---------- */
.mm-products {
  background: var(--mm-wine) url('../images/mm-texture.webp') center / cover no-repeat;
  color: #fff;
}
.mm-products-head { text-align: center; margin-bottom: 48px; }
.mm-products-head h2 { color: #fff; font-size: clamp(34px, 4.4vw, 54px); }
.mm-products-head p { color: rgba(255,255,255,.88); font-size: 18px; max-width: 560px; margin: 12px auto 0; }

.mm-carousel { background: var(--mm-cream); border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
/* Locked size: every slide sits in the same grid cell, so the carousel is always as
   tall as its tallest card and never jumps between slides (crossfades instead of sliding) */
.mm-carousel .carousel-inner { display: grid; }
.mm-carousel .carousel-item {
  display: block; grid-area: 1 / 1; float: none; margin-right: 0;
  visibility: hidden; background: var(--mm-cream);
}
.mm-carousel .carousel-item.active,
.mm-carousel .carousel-item-next,
.mm-carousel .carousel-item-prev { visibility: visible; }
.mm-slide { min-height: 480px; height: 100%; }
.mm-slide > [class*="col-"] { display: flex; flex-direction: column; }
.mm-slide-img { flex: 1; }
.mm-slide-body { justify-content: center; align-items: flex-start; }
.mm-slide-body .mm-spec { align-self: stretch; }
.mm-slide-img { height: 100%; min-height: 360px; position: relative; }
.mm-slide-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mm-slide-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: radial-gradient(120% 90% at 50% 30%, var(--mm-merlot), var(--mm-deep));
}
.mm-slide-placeholder img { position: static; width: 70%; height: auto; object-fit: contain; }
.mm-slide-placeholder span { color: #fff; font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.mm-slide-body { padding: 48px 48px 56px; color: #3a1622; }
.mm-slide-count { font-size: 14px; font-weight: 700; letter-spacing: .14em; color: var(--mm-merlot); margin-bottom: 10px; }
.mm-slide-body h3 { font-size: clamp(30px, 3.4vw, 42px); color: var(--mm-merlot); margin-bottom: 18px; }
.mm-slide-desc { font-size: 17px; line-height: 1.75; margin-bottom: 20px; }
.mm-spec { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin-bottom: 30px; font-size: 16px; }
.mm-spec dt { font-weight: 700; color: var(--mm-merlot); }
.mm-spec dd { margin: 0; }

.mm-carousel-ctrl {
  width: 52px; height: 52px; top: auto; bottom: 24px; opacity: 1;
  background: var(--mm-merlot); border-radius: 50%; color: #fff; font-size: 18px;
}
.mm-carousel-ctrl:hover, .mm-carousel-ctrl:focus { background: var(--mm-wine); color: #fff; opacity: 1; }
.mm-carousel .carousel-control-prev { left: auto; right: 92px; }
.mm-carousel .carousel-control-next { right: 28px; }

.mm-thumbs { display: flex; gap: 12px; margin-top: 28px; padding: 4px 4px 12px; overflow-x: auto; scrollbar-width: thin; }
.mm-thumb {
  flex: 0 0 112px; background: none; border: 0; padding: 0; color: #fff; text-align: center; cursor: pointer;
  font-size: 14px; font-weight: 600; line-height: 1.3; opacity: .8; transition: opacity .15s, transform .15s;
}
.mm-thumb:hover, .mm-thumb.active { opacity: 1; }
.mm-thumb.active { transform: translateY(-3px); }
.mm-thumb-img {
  display: block; width: 112px; height: 84px; margin-bottom: 8px; border-radius: 10px; overflow: hidden;
  border: 3px solid transparent; background: var(--mm-merlot);
}
.mm-thumb.active .mm-thumb-img { border-color: var(--mm-pink); }
.mm-thumb-img img { width: 100%; height: 100%; object-fit: cover; }
.mm-thumb-img--placeholder { display: flex; align-items: center; justify-content: center; }
.mm-thumb-img--placeholder img { width: 80%; height: auto; object-fit: contain; }
.mm-thumb-label { display: block; min-height: 2.6em; } /* two lines reserved so labels don't shift the row */
.mm-products-foot { text-align: center; margin-top: 40px; }
@media (max-width: 991px) {
  .mm-slide { height: auto; }
  .mm-slide-img { flex: none; height: 300px; min-height: 0; }
  .mm-slide-body { flex: 1; justify-content: flex-start; padding: 32px 24px 96px; }
  .mm-carousel .carousel-item > .mm-slide { min-height: 100%; }
  .mm-carousel-ctrl { bottom: 24px; }
  .mm-carousel .carousel-control-prev { left: 24px; right: auto; }
  .mm-carousel .carousel-control-next { right: auto; left: 88px; }
}

/* ---------- Team band ---------- */
.mm-team { background: var(--mm-ink); color: #fff; }
.mm-team-img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; }
.mm-team-img.mm-img-new { object-position: 62% 40%; }
/* desktop: the new photo fills the column at the text's height instead of its own (taller) height */
@media (min-width: 992px) {
  .mm-team-media { position: relative; }
  .mm-team-media .mm-img-new { position: absolute; inset: 0; min-height: 0; }
}
@media (max-width: 991px) {
  .mm-team-img.mm-img-new { height: auto; aspect-ratio: 65 / 62; max-height: 520px; }
}

/* DEMO: old/new image toggle (remove with js/mm-demo.js once picked) */
.mm-img-old { display: none; }
.mm-demo-old .mm-img-old { display: block; }
.mm-demo-old .mm-img-new { display: none; }
.mm-demo-toggle {
  position: fixed; right: 20px; bottom: 20px; z-index: 1050;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--mm-ink); color: #fff; font-size: 15px; font-weight: 700;
  box-shadow: 0 10px 30px rgba(0,0,0,.3); cursor: pointer;
}
.mm-demo-toggle span { color: var(--mm-pink); font-weight: 600; }
.mm-demo-toggle:hover { background: var(--mm-merlot); }
.mm-demo-toggle:focus-visible { outline: 3px solid var(--mm-pink-hot); outline-offset: 3px; }
.mm-team-body { padding: 72px clamp(24px, 5vw, 72px); }
.mm-team-title { display: flex; align-items: center; gap: 24px; margin-bottom: 30px; }
.mm-team-title h2 { color: #fff; font-size: clamp(38px, 4.6vw, 58px); }
.mm-moon { width: 104px; height: 104px; flex-shrink: 0; }
.mm-team h3 { color: #fff; font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.mm-team p { color: rgba(255,255,255,.88); font-size: 17px; line-height: 1.8; margin-bottom: 16px; }

/* ---------- What we do differently ---------- */
.mm-diff { background: var(--mm-pink); color: var(--mm-deep); }
.mm-diff h2 { color: var(--mm-merlot); font-size: clamp(44px, 6vw, 76px); margin-bottom: 22px; }
.mm-diff-lede { font-size: 19px; line-height: 1.75; max-width: 860px; margin-bottom: 48px; }
.mm-diff h3 { font-size: 20px; font-weight: 800; color: var(--mm-ink); margin-bottom: 10px; }
.mm-diff p { font-size: 16px; line-height: 1.75; }

/* ---------- How it works ---------- */
.mm-steps { background: var(--mm-cream); }
.mm-steps-head { margin-bottom: 52px; }
.mm-steps-head h2 { color: var(--mm-merlot); font-size: clamp(40px, 5vw, 64px); }
.mm-step { height: 100%; border-top: 2px solid var(--mm-merlot); padding-top: 22px; }
.mm-step-num { font-family: var(--mm-display); font-size: 56px; line-height: 1; color: var(--mm-merlot); margin-bottom: 12px; }
.mm-step h3 { font-family: var(--mm-display); font-weight: 400; font-size: 30px; color: var(--mm-merlot); margin-bottom: 12px; }
.mm-step p { font-size: 16px; line-height: 1.75; color: #4a2030; }

/* ---------- FAQ cards ---------- */
.mm-faq { background: var(--mm-pink-lt); }
.mm-faq-title { font-family: 'Inter', sans-serif; font-weight: 900; font-size: clamp(64px, 11vw, 150px); line-height: .9; letter-spacing: -.04em; color: var(--mm-merlot); margin-bottom: 40px; }
.mm-faq-card { height: 100%; background: var(--mm-cream); border-radius: 16px; padding: 26px 26px 24px; }
.mm-faq-card h3 { font-size: 18px; font-weight: 800; color: var(--mm-ink); margin-bottom: 10px; line-height: 1.3; }
.mm-faq-card p { font-size: 16px; line-height: 1.7; color: #3a1622; margin: 0; }

/* ---------- Thinking bigger ---------- */
.mm-bigger { background: var(--mm-merlot) url('../images/mm-texture.webp') center / cover no-repeat; text-align: center; color: #fff; }
.mm-bigger h2 { color: #fff; font-size: clamp(38px, 4.8vw, 60px); margin-bottom: 18px; }
.mm-bigger p { color: rgba(255,255,255,.9); font-size: 18px; line-height: 1.8; max-width: 680px; margin: 0 auto 30px; }
.mm-brand-pair { display: flex; justify-content: center; align-items: center; gap: 28px; margin-top: 44px; }
.mm-brand-pair img:first-child { width: 96px; height: 96px; }
.mm-brand-pair img:last-child { width: 170px; height: auto; }

/* ---------- Contact ---------- */
.mm-contact { background: var(--mm-wine); }
.mm-contact-img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; object-position: 20% center; }
.mm-contact-body { padding: 72px clamp(24px, 5vw, 72px); }
.mm-contact-title { color: #fff; font-size: clamp(42px, 5vw, 64px); margin-bottom: 12px; }
.mm-contact-sub { color: rgba(255,255,255,.9); font-size: 18px; margin-bottom: 28px; }
.mm-form { background: var(--mm-pink); border: 6px solid #fff; border-radius: 18px; padding: 28px; color: var(--mm-deep); }
.mm-form .form-label { font-size: 15px; font-weight: 700; color: var(--mm-merlot); margin-bottom: 6px; }
.mm-form .form-control {
  min-height: 48px; font-size: 16px; color: var(--mm-ink);
  background: rgba(255,255,255,.75); border: 1px solid rgba(138,28,64,.35); border-radius: 10px;
}
.mm-form .form-control:focus { background: #fff; border-color: var(--mm-merlot); box-shadow: 0 0 0 3px rgba(138,28,64,.2); }
.mm-form .form-control::placeholder { color: #6b4a55; }
.mm-form-alert { border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; font-size: 16px; font-weight: 600; }
.mm-form-alert--ok  { background: #e7f6ec; color: #14532d; }
.mm-form-alert--err { background: #fde8e8; color: #7f1d1d; }
.mm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Content doc refresh: hero tagline, sign-off, extras, occasions ---------- */
.mm-hero-tagline { color: #fff; font-size: clamp(30px, 3.4vw, 42px); margin: 4px 0 6px; }
.mm-signoff { font-size: 19px; font-weight: 600; color: var(--mm-merlot); margin-top: 6px; }
.mm-signoff em { font-family: var(--mm-display); font-weight: 400; font-size: 1.3em; }
.mm-extras { background: var(--mm-pink-lt); }
.mm-extras h2 { color: var(--mm-merlot); font-size: clamp(38px, 4.6vw, 58px); margin-bottom: 18px; }
.mm-extras p { font-size: 17px; line-height: 1.8; color: #4a2030; }
.mm-extras .mm-lede { font-size: 20px; font-weight: 700; color: var(--mm-merlot); margin: 20px 0 6px; }
.mm-extra { margin: 0; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 16px 40px rgba(61,10,27,.12); }
.mm-extra img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.mm-extra figcaption { padding: 12px 16px 14px; font-size: 16px; font-weight: 700; color: var(--mm-merlot); }
.mm-occasions { background: var(--mm-merlot) url('../images/mm-texture.webp') center / cover no-repeat; }
.mm-occasions h2 { color: #fff; font-size: clamp(36px, 4.6vw, 58px); margin-bottom: 14px; }
.mm-occasions p { color: rgba(255,255,255,.9); font-size: 18px; max-width: 620px; margin: 0 auto 30px; }
.mm-occasion-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 860px; margin: 0 auto; }
.mm-occasion-list span { padding: 10px 20px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; font-size: 16px; font-weight: 600; }
.mm-faq-title { font-size: clamp(54px, 8vw, 110px); }

@media (max-width: 767px) {
  .mm-section { padding: 64px 20px; }
  .mm-quote { padding: 36px 20px 44px; }
  .mm-team-body, .mm-contact-body { padding: 48px 20px; }
  .mm-moon { width: 80px; height: 80px; }
}
