/* ==========================================================================
   M1 Management — Design Tokens
   ========================================================================== */
:root {
  --navy: #0a1f3d;
  --navy-deep: #061429;
  --navy-soft: #142c52;
  --gold: #c9982e;
  --gold-light: #e0b75a;
  --cream: #f7f3ea;
  --white: #ffffff;
  --ink: #1b2433;
  --muted: #5c6878;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1180px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--navy);
  padding: 12px 20px;
  z-index: 9999;
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ==========================================================================
   Loader
   ========================================================================== */
.loader {
  position: fixed;
  inset: 0;
  background: var(--navy-deep);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  display: flex;
  opacity: 0;
  animation: loaderIn 1s var(--ease) 0.15s forwards;
}
.loader-m { color: var(--white); }
.loader-1 { color: var(--gold); }
@keyframes loaderIn {
  from { opacity: 0; transform: scale(0.85); letter-spacing: 0.3em; }
  to { opacity: 1; transform: scale(1); letter-spacing: 0.05em; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: background 0.35s var(--ease), padding 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.scrolled {
  background: rgba(10, 31, 61, 0.92);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.logo-m {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--white);
}
.logo-text {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--gold-light);
  font-weight: 500;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 34px;
}
.main-nav a {
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  position: relative;
  padding: 4px 0;
  transition: color 0.25s;
}
.main-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.main-nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--gold);
  color: var(--navy-deep) !important;
  padding: 9px 20px !important;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(201,152,46,0.4);
  background: var(--gold-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(78vw, 320px);
  background: var(--navy-deep);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  display: flex;
  align-items: center;
  z-index: 1050;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav ul {
  width: 100%;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.mobile-nav a {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 500;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-soft) 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.mountain-layer {
  position: absolute;
  bottom: 0;
  left: -5%;
  width: 110%;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.mountain-back {
  height: 38%;
  opacity: 0.35;
  clip-path: polygon(0% 100%, 0% 60%, 8% 40%, 18% 55%, 28% 25%, 38% 48%, 50% 15%, 62% 45%, 74% 30%, 86% 52%, 100% 35%, 100% 100%);
  background: var(--navy-soft);
  animation: drift 26s ease-in-out infinite alternate;
}
.mountain-front {
  height: 28%;
  opacity: 0.55;
  clip-path: polygon(0% 100%, 0% 70%, 10% 48%, 22% 62%, 34% 38%, 46% 58%, 58% 30%, 70% 55%, 82% 40%, 92% 60%, 100% 45%, 100% 100%);
  background: var(--navy);
  animation: drift 18s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(2%); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(201,152,46,0.12), transparent 60%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 90px;
}
.eyebrow {
  color: var(--gold-light);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  font-weight: 600;
  margin-bottom: 18px;
}
.eyebrow.center { text-align: center; }
.hero-title {
  font-family: var(--font-display);
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero-title .accent { color: var(--gold); }
.hero-sub {
  color: rgba(255,255,255,0.78);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 38px;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(201,152,46,0.35);
  background: var(--gold-light);
}
.btn-ghost {
  border: 1.5px solid rgba(255,255,255,0.4);
  color: var(--white);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-3px);
}

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp 0.9s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 14px;
}
.scroll-cue span {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: var(--gold-light);
  border-radius: 3px;
  transform: translateX(-50%);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { opacity: 1; top: 7px; }
  70% { opacity: 0; top: 22px; }
  100% { opacity: 0; top: 7px; }
}

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Section generic
   ========================================================================== */
section { padding: 110px 0; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 56px;
  line-height: 1.25;
}
.section-title.center { text-align: center; max-width: 700px; margin-inline: auto; margin-bottom: 64px; }
.lead { font-size: 1.08rem; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }
h2 { font-family: var(--font-display); color: var(--navy); }

/* ==========================================================================
   About
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: center;
}
.about-text h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 24px;
}
.about-text p { color: var(--muted); line-height: 1.75; margin-bottom: 16px; }
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.stat-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 30px 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease);
}
.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,152,46,0.18), transparent 60%);
}
.stat-card:hover { transform: translateY(-6px); }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--gold-light);
  position: relative;
  z-index: 1;
}
.stat-suffix {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--gold-light);
}
.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.78);
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Services
   ========================================================================== */
.services { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 38px 30px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s;
  border: 1px solid transparent;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 38px rgba(10,31,61,0.12);
  background: var(--white);
  border-color: rgba(201,152,46,0.3);
}
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  margin-bottom: 22px;
  transition: background 0.4s, transform 0.4s var(--ease);
}
.service-card:hover .service-icon {
  background: var(--gold);
  color: var(--navy-deep);
  transform: rotate(-8deg) scale(1.06);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 10px;
}
.service-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

/* ==========================================================================
   Properties
   ========================================================================== */
.properties { background: var(--cream); padding-bottom: 130px; }
.property-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.property-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(10,31,61,0.08);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.property-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 48px rgba(10,31,61,0.18);
}
.property-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-soft), var(--navy));
}
.property-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.property-card:hover .property-media img { transform: scale(1.08); }
.media-fallback img { display: none; }
.media-fallback::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(201,152,46,0.25), transparent 55%),
    linear-gradient(135deg, var(--navy-soft), var(--navy-deep));
}
.property-info { padding: 24px 22px 28px; }
.property-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--navy);
  margin-bottom: 14px;
}
.property-icon svg { width: 20px; height: 20px; }
.property-info h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.property-info p { color: var(--muted); font-size: 0.9rem; line-height: 1.55; }

/* ==========================================================================
   Why Us
   ========================================================================== */
.why-us { background: var(--navy-deep); color: var(--white); }
.why-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.why-text .eyebrow { color: var(--gold-light); }
.why-text h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.2;
  margin-bottom: 22px;
}
.why-text .lead { color: rgba(255,255,255,0.75); }
.why-list { display: flex; flex-direction: column; gap: 22px; margin-top: 28px; }
.why-list li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.why-mark {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.why-list span:last-child { color: rgba(255,255,255,0.8); line-height: 1.6; }

.why-visual { display: flex; justify-content: center; }
.nv-shape {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-light), var(--gold) 55%, var(--navy-soft) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 5s ease-in-out infinite;
}
.nv-star {
  width: 26px;
  height: 26px;
  background: var(--navy-deep);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(201,152,46,0.3); }
  50% { transform: scale(1.04); box-shadow: 0 0 0 20px rgba(201,152,46,0); }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { background: var(--cream); }
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.contact-text h2 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.2;
  margin-bottom: 18px;
}
.contact-list { margin: 30px 0; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; align-items: flex-start; gap: 16px; }
.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  flex-shrink: 0;
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-list a { font-weight: 500; color: var(--navy); transition: color 0.25s; }
.contact-list a:hover { color: var(--gold); }
.contact-cta { margin-top: 8px; }

.contact-map { display: flex; justify-content: center; }
.nv-outline {
  position: relative;
  width: 260px;
  color: var(--navy);
}
.nv-state-img {
  width: 100%;
  height: auto;
  animation: nvPulse 2.4s ease-in-out infinite;
}
@keyframes nvPulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(201,152,46,0)); }
  50% { filter: drop-shadow(0 0 10px rgba(201,152,46,0.55)); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.65);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  font-size: 0.85rem;
}
.footer-brand { display: flex; align-items: baseline; gap: 8px; }
.footer-brand .logo-m { font-size: 1.2rem; }
.footer-brand .logo-text { font-size: 0.6rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .about-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .property-rail { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-visual, .contact-map { order: -1; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  section { padding: 80px 0; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .property-rail { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}
