/* =====================================================
   MINIMOOSE COTTAGE — Main Stylesheet
   Design: Modern Nordic
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:    #1a1714;
  --birch:  #e8e0d4;
  --flax:   #d4c4a8;
  --amber:  #b8762a;
  --sage:   #6b7a62;
  --white:  #faf9f7;
  --mid:    #9a8e7e;
  --light:  #f0ebe3;
}

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

body {
  background: var(--white);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ── TYPOGRAPHY HELPERS ── */
.mm-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
  display: block;
}

.mm-heading {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 1.08;
  color: var(--ink);
}

.mm-heading em { font-style: italic; }

/* ── NAVIGATION ── */
#mm-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 3rem;
  background: rgba(250,249,247,0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(26,23,20,0.07);
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}

#mm-nav.scrolled {
  padding: 1rem 3rem;
  box-shadow: 0 2px 20px rgba(26,23,20,0.07);
}

.mm-nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.mm-nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.mm-nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
}

.mm-nav-links a:hover { color: var(--ink); }

.mm-nav-cta {
  background: var(--ink) !important;
  color: var(--white) !important;
  padding: 0.55em 1.3em !important;
  letter-spacing: 0.1em !important;
  transition: background 0.2s ease !important;
}

.mm-nav-cta:hover { background: var(--amber) !important; }

/* Hamburger */
.mm-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.mm-hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.mm-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mm-hamburger.open span:nth-child(2) { opacity: 0; }
.mm-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── HERO ── */
#mm-hero {
  height: 100vh;
  min-height: 600px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}

.mm-hero-left {
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 4rem 4rem 4.5rem;
  position: relative;
  overflow: hidden;
}

.mm-hero-left-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: grayscale(15%);
  transition: opacity 0.8s ease;
}

.mm-hero-left-content {
  position: relative; z-index: 2;
  animation: mmFadeUp 1.1s ease both;
}

.mm-hero-tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(212,196,168,0.75);
  border: 1px solid rgba(212,196,168,0.3);
  padding: 0.38em 0.9em;
  margin-bottom: 1.8rem;
}

.mm-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(3.2rem, 5.5vw, 5.8rem);
  line-height: 1.03;
  color: var(--white);
}

.mm-hero-title em {
  font-style: italic;
  color: var(--flax);
}

.mm-hero-scroll {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(212,196,168,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.mm-hero-scroll-line {
  width: 40px;
  height: 1px;
  background: rgba(212,196,168,0.4);
  animation: mmPulseWidth 2.5s ease-in-out infinite;
}

.mm-hero-right {
  position: relative;
  overflow: hidden;
}

.mm-hero-right-img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: mmSlowZoom 9s ease both;
}

/* ── MARQUEE ── */
#mm-marquee {
  background: var(--amber);
  overflow: hidden;
  padding: 0.75rem 0;
  white-space: nowrap;
  user-select: none;
}

.mm-marquee-track {
  display: inline-flex;
  animation: mmScroll 25s linear infinite;
}

.mm-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 2rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250,249,247,0.9);
  font-weight: 500;
}

.mm-marquee-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(250,249,247,0.45);
  flex-shrink: 0;
}

/* ── SECTIONS SHARED ── */
.mm-section {
  padding: 7rem 3rem;
}

.mm-section-inner {
  max-width: 1160px;
  margin: 0 auto;
}

/* ── ABOUT ── */
#mm-about {
  background: var(--white);
}

.mm-about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 6rem;
  align-items: start;
}

.mm-about-sticky {
  position: sticky;
  top: 100px;
}

.mm-about-heading {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
}

.mm-about-body p {
  font-size: 1.05rem;
  line-height: 1.95;
  color: #4a4540;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.mm-about-body p:last-child { margin-bottom: 0; }

.mm-about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--birch);
  border: 1px solid var(--birch);
  margin-top: 3rem;
}

.mm-stat {
  background: var(--white);
  padding: 1.8rem;
  text-align: center;
}

.mm-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.mm-stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid);
}

/* ── FEATURES ── */
#mm-features {
  background: var(--birch);
}

.mm-features-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(26,23,20,0.1);
}

.mm-features-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.mm-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(26,23,20,0.1);
}

.mm-feature {
  padding: 2.5rem;
  border-right: 1px solid rgba(26,23,20,0.1);
  background: var(--birch);
  transition: background 0.25s ease;
}

.mm-feature:last-child { border-right: none; }
.mm-feature:hover { background: rgba(184,118,42,0.06); }

.mm-feature-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--amber);
  opacity: 0.55;
  line-height: 1;
  margin-bottom: 1.2rem;
}

.mm-feature h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.mm-feature p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--mid);
  font-weight: 300;
}

/* ── GALLERY ── */
#mm-gallery {
  background: var(--white);
  padding: 7rem 0;
}

.mm-gallery-header {
  padding: 0 3rem;
  max-width: 1160px;
  margin: 0 auto 3rem;
}

.mm-gallery-header .mm-section-num {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.5rem;
}

/* Masonry-style grid */
.mm-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 6px;
  padding: 0 6px;
}

.mm-gallery-item {
  overflow: hidden;
  background: var(--birch);
  cursor: pointer;
  position: relative;
}

.mm-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.4s ease;
}

.mm-gallery-item:hover img {
  transform: scale(1.04);
  filter: brightness(1.06);
}

/* Span variants for visual interest */
.mm-gallery-item.tall { grid-row: span 2; }
.mm-gallery-item.wide { grid-column: span 2; }

/* ── LIGHTBOX ── */
#mm-lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(20, 16, 12, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#mm-lightbox.active {
  opacity: 1;
  pointer-events: all;
}

#mm-lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.mm-lb-close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  font-size: 1.8rem;
  color: rgba(250,249,247,0.6);
  cursor: pointer;
  background: none; border: none;
  line-height: 1;
  transition: color 0.2s;
}

.mm-lb-close:hover { color: var(--white); }

.mm-lb-prev, .mm-lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(250,249,247,0.1);
  border: 1px solid rgba(250,249,247,0.15);
  color: var(--white);
  font-size: 1.2rem;
  padding: 1rem 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
  line-height: 1;
}

.mm-lb-prev { left: 1.5rem; }
.mm-lb-next { right: 1.5rem; }
.mm-lb-prev:hover, .mm-lb-next:hover { background: rgba(250,249,247,0.2); }

.mm-lb-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: rgba(250,249,247,0.4);
}

/* ── CONTACT ── */
#mm-contact {
  background: var(--ink);
  padding: 8rem 3rem;
  position: relative;
  overflow: hidden;
}

#mm-contact::before {
  content: '';
  position: absolute;
  top: -40%; right: -15%;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,118,42,0.1) 0%, transparent 65%);
  pointer-events: none;
}

.mm-contact-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7rem;
  align-items: center;
}

.mm-contact-heading {
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  color: var(--white);
  margin-top: 1.2rem;
}

.mm-contact-heading em {
  font-style: italic;
  color: var(--flax);
}

.mm-contact-desc {
  color: rgba(250,249,247,0.52);
  font-size: 1rem;
  line-height: 1.85;
  margin-top: 1.5rem;
  font-weight: 300;
  max-width: 42ch;
}

.mm-contact-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mm-contact-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.8rem;
  text-decoration: none;
  border: 1px solid rgba(250,249,247,0.13);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  background: rgba(250,249,247,0.04);
  transition: all 0.25s ease;
}

.mm-contact-btn:hover {
  background: var(--amber);
  border-color: var(--amber);
  padding-left: 2.2rem;
}

.mm-contact-btn-label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.25rem;
  font-weight: 500;
  transition: color 0.25s;
}

.mm-contact-btn:hover .mm-contact-btn-label {
  color: rgba(250,249,247,0.65);
}

.mm-contact-btn-value {
  font-size: 0.97rem;
  letter-spacing: 0.01em;
}

.mm-contact-arrow {
  font-size: 1.1rem;
  opacity: 0.4;
  flex-shrink: 0;
  margin-left: 1rem;
}

/* ── FOOTER ── */
#mm-footer {
  background: #0e0c0a;
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.mm-footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 300;
  color: rgba(250,249,247,0.3);
  text-decoration: none;
}

.mm-footer-copy {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: rgba(250,249,247,0.22);
}

/* ── ANIMATIONS ── */
@keyframes mmFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes mmSlowZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1); }
}

@keyframes mmScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes mmPulseWidth {
  0%, 100% { width: 30px; opacity: 0.4; }
  50% { width: 50px; opacity: 0.7; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .mm-about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .mm-about-sticky { position: static; }
  .mm-gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  #mm-nav { padding: 1.2rem 1.5rem; }
  #mm-nav.scrolled { padding: 0.9rem 1.5rem; }
  .mm-nav-links { display: none; }
  .mm-hamburger { display: flex; }

  .mm-nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(250,249,247,0.97);
    backdrop-filter: blur(14px);
    padding: 1.5rem 2rem 2rem;
    gap: 1.2rem;
    border-bottom: 1px solid var(--birch);
    animation: mmFadeUp 0.25s ease;
  }

  .mm-nav-cta {
    background: none !important;
    color: var(--ink) !important;
    padding: 0 !important;
  }

  #mm-hero { grid-template-columns: 1fr; height: auto; }
  .mm-hero-left { min-height: 75vh; padding: 7rem 2rem 3rem; }
  .mm-hero-right { height: 55vw; }

  .mm-section { padding: 5rem 1.5rem; }

  .mm-features-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .mm-features-grid { grid-template-columns: 1fr; }
  .mm-feature { border-right: none; border-bottom: 1px solid rgba(26,23,20,0.1); }
  .mm-feature:last-child { border-bottom: none; }

  .mm-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
  .mm-gallery-item.wide { grid-column: span 1; }

  .mm-contact-grid { grid-template-columns: 1fr; gap: 3rem; }

  #mm-footer { flex-direction: column; text-align: center; }
  .mm-gallery-header { padding: 0 1.5rem; }
}

@media (max-width: 480px) {
  .mm-hero-title { font-size: 2.8rem; }
  .mm-gallery-grid { grid-template-columns: 1fr; }
  .mm-gallery-item.tall { grid-row: span 1; }
  .mm-about-stats { grid-template-columns: 1fr 1fr; }
}
