/* ===========================
   LA MAISON PAGE
   =========================== */

.maison-page {
  font-family: 'Montserrat', sans-serif;
  color: #111;
  margin: 0;
  background: #fff;
}

.maison-page img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* --- Hero --- */
.m-hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
  background: #000;
}

.m-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('Photos/neptune Photos/maison.gif') center/cover no-repeat;
  z-index: 0;
}

.m-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.m-hero-community {
  position: absolute;
  top: 40px;
  right: 60px;
  z-index: 3;
  font-size: 14px;
  font-weight: 300;
  color: #ccc;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: opacity 0.2s;
}

.m-hero-community:hover {
  opacity: 0.75;
}

.m-hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 24px 40px;
  max-width: 800px;
}

.m-hero-content h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 300;
  letter-spacing: 1px;
  margin: 0 0 20px;
}

.m-hero-content p {
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 40px;
  line-height: 1.6;
}

.m-hero-btn {
  display: inline-block;
  padding: 12px 28px;
  background: rgba(120, 120, 120, 0.45);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}

.m-hero-btn:hover {
  background: rgba(140, 140, 140, 0.6);
}

/* --- Split sections (spirit + vision) --- */
.m-spirit {
  background: #f5f5f5;
  padding: 100px 10%;
}

.m-vision {
  background: #f0f0f0;
  padding: 100px 10%;
  position: relative;
}

.m-vision::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.06), transparent);
}

.m-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.m-split h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300;
  color: #8a8a8a;
  line-height: 1.2;
  margin: 0;
}

.m-split-text p {
  font-size: 17px;
  line-height: 1.85;
  color: #333;
  margin: 0 0 16px;
}

.m-split-text p:last-child {
  margin-bottom: 0;
}

/* --- Quote --- */
.m-quote {
  background: #e6e6e6;
  padding: 80px 10%;
}

.m-quote-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.m-quote-content {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.m-quote-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 72px;
  line-height: 1;
  color: #111;
  position: absolute;
}

.m-quote-mark--open {
  top: -36px;
  right: 8px;
  left: auto;
  transform: scaleX(-1);
}

.m-quote-mark--close {
  bottom: -4px;
  left: 8px;
  right: auto;
  transform: scaleX(-1);
}

.m-quote-content p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.6;
  color: #555;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.m-quote-author {
  font-family: 'Montserrat', sans-serif;
  font-style: normal !important;
  font-size: 15px !important;
  color: #333 !important;
  margin-top: 28px !important;
  padding: 0 !important;
  text-align: center;
}

/* --- Category cards --- */
.m-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 40px;
  background: #f2f2f2;
}

.m-card {
  position: relative;
  height: 420px;
  border-radius: 14px;
  overflow: hidden;
  background-color: #1a1a1a;
  background-image: none;
  transition: transform 0.3s ease;
  isolation: isolate;
}

.m-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  filter: brightness(1.22) contrast(1.02);
  transition: filter 0.3s ease;
}

.m-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.06));
}

.m-card:hover {
  transform: scale(1.02);
}

.m-card:hover::after {
  filter: brightness(1.28) contrast(1.02);
}

.m-card-content {
  position: absolute;
  bottom: 32px;
  left: 28px;
  z-index: 2;
  color: #fff;
}

.m-card-content h3 {
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 400;
  margin: 0 0 14px;
}

.m-card-btn {
  display: inline-block;
  background: #fff;
  color: #111;
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  transition: background 0.2s;
}

.m-card-btn:hover {
  background: #e0e0e0;
}

/* --- Signature --- */
.m-signature {
  background: #f4f4f4;
  padding: 100px 5% 120px;
  text-align: center;
}

.m-signature-header h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300;
  color: #8c8c8c;
  margin: 0 0 20px;
}

.m-signature-header h2 span {
  font-weight: 400;
}

.m-signature-header p {
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.85;
  color: #333;
  font-size: 16px;
}

.m-signature-products {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  margin: 70px auto 0;
  max-width: 1100px;
}

.m-product {
  flex: 1;
  min-width: 120px;
  max-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.m-product h4 {
  font-size: 14px;
  font-weight: 400;
  color: #444;
  margin: 0 0 12px;
  min-height: 44px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
}

.m-product > img {
  width: 110px;
  height: 120px;
  margin: 0 auto;
  object-fit: contain;
  object-position: bottom center;
}

.m-product > img.m-product-img--rectangle {
  transform: scale(1.55);
  transform-origin: center bottom;
}

.m-signature-btn {
  display: inline-block;
  margin-top: 80px;
  padding: 14px 36px;
  background: #ddd;
  color: #222;
  text-decoration: none;
  font-size: 14px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: background 0.2s, transform 0.2s;
}

.m-signature-btn:hover {
  background: #ccc;
  transform: translateY(-1px);
}

/* --- Impact / testimonials --- */
.m-impact {
  width: 100%;
  background: linear-gradient(90deg, #1f1f1f, #2c2c2c);
  color: #dfdfdf;
  padding: 100px 5%;
}

.m-impact-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  max-width: 1300px;
  margin: 0 auto;
}

.m-impact-title {
  flex: 1;
}

.m-impact-title h2 {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 300;
  line-height: 1.15;
  margin: 0;
}

.m-impact-slider {
  flex: 2;
  position: relative;
  min-height: 220px;
}

.m-impact .slide {
  display: none;
}

.m-impact .slide.active {
  display: block;
}

.m-person-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.m-person-row img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.m-person-info h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 4px;
  color: #fff;
}

.m-person-info span {
  font-size: 13px;
  color: #aaa;
}

.m-testimonial-text {
  font-size: 16px;
  line-height: 1.75;
  color: #ccc;
  max-width: 580px;
  margin: 0;
}

.m-impact-controls {
  margin-top: 36px;
}

.m-impact-controls button {
  background: none;
  border: none;
  color: #dfdfdf;
  font-size: 26px;
  margin-right: 16px;
  cursor: pointer;
  padding: 4px 8px;
  transition: opacity 0.2s;
}

.m-impact-controls button:hover {
  opacity: 0.6;
}

.m-impact .counter {
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 13px;
  color: #888;
}

/* --- Contact express --- */
.m-contact {
  text-align: center;
  padding: 100px 24px 120px;
  background: #fff;
}

.m-contact h2 {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 400;
  margin: 0 0 12px;
}

.m-contact p {
  font-size: 15px;
  color: #666;
  margin: 0 0 32px;
}

.m-contact-btn {
  display: inline-block;
  padding: 14px 36px;
  background: #e8e8e8;
  color: #444;
  text-decoration: none;
  font-size: 14px;
  border-radius: 8px;
  transition: background 0.2s;
}

.m-contact-btn:hover {
  background: #ddd;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .m-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .m-categories {
    grid-template-columns: repeat(2, 1fr);
  }

  .m-impact-inner {
    flex-direction: column;
  }

  .m-quote-inner {
    text-align: center;
  }

  .m-quote-mark--open {
    top: -28px;
    right: 0;
    left: auto;
    transform: scaleX(-1);
  }

  .m-quote-mark--close {
    bottom: 0;
    left: 0;
    right: auto;
    transform: scaleX(-1);
  }
}

@media (max-width: 600px) {
  .m-hero {
    min-height: 480px;
  }

  .m-hero-community {
    top: 24px;
    right: 24px;
    font-size: 12px;
  }

  .m-spirit,
  .m-vision,
  .m-quote {
    padding: 60px 24px;
  }

  .m-categories {
    grid-template-columns: repeat(2, 1fr);
    padding: 16px;
    gap: 12px;
  }

  .m-card {
    height: 200px;
    border-radius: 10px;
  }

  .m-card-content {
    bottom: 14px;
    left: 14px;
  }

  .m-card-content h3 {
    font-size: 10px;
    letter-spacing: 1px;
    margin-bottom: 8px;
  }

  .m-card-btn {
    padding: 6px 14px;
    font-size: 11px;
    border-radius: 5px;
  }

  .m-signature {
    padding: 64px 4% 72px;
  }

  .m-signature-products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
    margin-top: 40px;
    max-width: 420px;
  }

  .m-product {
    flex: none;
    min-width: 0;
    max-width: none;
    width: 100%;
  }

  .m-product h4 {
    font-size: 13px;
    min-height: 36px;
    margin-bottom: 10px;
  }

  .m-product > img {
    width: 96px;
    height: 104px;
  }

  .m-product > img.m-product-img--rectangle {
    transform: scale(1.35);
  }

  /* Last product alone on its row stays centered */
  .m-product:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 160px;
    margin-inline: auto;
  }

  .m-signature-btn {
    margin-top: 40px;
    padding: 12px 28px;
  }
}
